-
大小: 3KB文件類型: .zip金幣: 1下載: 0 次發布日期: 2021-02-12
- 語言: Matlab
- 標簽: matlab??minboundrect??外接矩??外接矩形??
資源簡介
使用matlab代碼求出不規則區域所對應的最小外接矩形
代碼片段和文件信息
function?[rectxrectyareaperimeter]?=?minboundrect(xymetric)
%?minboundrect:?Compute?the?minimal?bounding?rectangle?of?points?in?the?plane
%?usage:?[rectxrectyareaperimeter]?=?minboundrect(xymetric)
%
%?arguments:?(input)
%??xy?-?vectors?of?points?describing?points?in?the?plane?as
%????????(xy)?pairs.?x?and?y?must?be?the?same?lengths.
%
%??metric?-?(OPTIONAL)?-?single?letter?character?flag?which
%????????denotes?the?use?of?minimal?area?or?perimeter?as?the
%????????metric?to?be?minimized.?metric?may?be?either?‘a‘?or?‘p‘
%????????capitalization?is?ignored.?Any?other?contraction?of?‘area‘
%????????or?‘perimeter‘?is?also?accepted.
%
%????????DEFAULT:?‘a‘????(‘area‘)
%
%?arguments:?(output)
%??rectxrecty?-?5x1?vectors?of?points?that?define?the?minimal
%????????bounding?rectangle.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????5909??2010-04-28?19:51??minboundrect.m
評論
共有 條評論