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

 Accepted Answer

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

More Answers (1)

Use find to get the x,y coordinates of the respective pixels and use boundary

2 Comments

I tried this approach always, but i get error, so u have any commands,
Why errors? Show us the code..

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!