"zahra daffa" <zahra_daffa@yahoo.com> wrote in message
news:hcr3vp$hqg$1@fred.mathworks.com...
> Hi all,
> I need your help
>
> how to find maximum radius of the object where the object can regular
> (like circle, rectangle, etc) or irregular object.The radius count from
> center.
>
> please help me...
>
> regards
Which object are you talking about? You really need to be more clear in
describing what you need help with.
Anything and everything in the universe is an object? what is the context
here?
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <bb71b75b-868f-4d33-9f94-0ed1fc156d75@s15g2000yqs.googlegroups.com>...
> Once you have your object binarized, use bwboundaries() to get the
> boundary coordinates.
>
> Then use bwconncomp (or bwlabel) and regionprops() to get the
> centroid.
>
> Then just get the distance between every boundary point to the
> centroid for every object, keeping track of the max distance.
>
> This demo may help:
> http://www.mathworks.com/matlabcentral/fileexchange/25157
Of course, the distance to the centroid may not be
a good measure of the size of an object.
You might use a minimal bounding circle instead.
Identify the points, and then call minboundcircle,
found on the file exchange.
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.