MATLAB: How can i detect contours properly

contour - extractImage Processing Toolbox

hello everyone , i have tried to detect contours and extract contours of this image but it doesn't work properly for detecting all contours (canny , log ..) , have tried also to make it binary also any suggestions will be appreciated

Best Answer

The image looks binary so it doesn't really have contours. The only "contour" is the boundary between pure black and pure white. Try bwboundaries() or bwperim() to get the edge pixels.
Related Question