how can i detect contours properly ?

1 view (last 30 days)
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

Accepted Answer

Image Analyst
Image Analyst on 14 Apr 2014
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.
  4 Comments
Image Analyst
Image Analyst on 14 Apr 2014
You might try to flatten the background by using adapthisteq() on it. Otherwise just try some different parameters on the edge detectors. Or try to program up a dog filter (difference of gaussians), like the demo I attached.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!