Isolate the outline of a shape.

5 views (last 30 days)
Alex Perrakis
Alex Perrakis on 31 Aug 2021
Commented: Matt J on 31 Aug 2021
Hello i have through binarizing and using bwpropfilt i have got the attached image, my question is : does anyone have an idea how i can isolate the outline of the shape in the middle and have it as a shape?

Accepted Answer

Matt J
Matt J on 31 Aug 2021
Edited: Matt J on 31 Aug 2021
Perhaps as follows?
load Image
BW=imerode(bwconvhull(BW),strel('disk',20))& ~BW;
imshow(BW); zoom(3)
Matt J
Matt J on 31 Aug 2021
Thanks i found a way with bwboundaries, now i have another problem.
If so, you should post it as a new question.

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!