MATLAB: How to draw contour on edge [border outer ] in the objects

image processingImage Processing Toolboxsegementation

How to draw contour on edge [border outer ] in the objects?

Best Answer

Threshold the image. Call imdilate() if you want to enlarge it. Then call bwboundaries() and plot().