MATLAB: Outer and inner contour of the image from the centroid

convex hulldigital image processingimageimage analysisimage processingImage Processing Toolboximage segmentation

Hello everybody,
I have following image:
I would like to find the Outer and inner contour of the image from the centroid, for example as here:
I would appreciate any help!
Thanks in advance!

Best Answer

Use bwconvhull() and then bwboundaries(). The outer is the boundaries of the convex hull. To get the inner, subtract or XOR the original from the convex hull, then call bwboundaries().
Related Question