Isolate the outline of a shape.
2 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Matt J
2021-8-31
编辑:Matt J
2021-8-31
Perhaps as follows?
load Image
BW=bwareafilt(Image,1);
BW=imerode(bwconvhull(BW),strel('disk',20))& ~BW;
BW=imopen(BW,ones(10,1));
BW=bwperim(bwareafilt(BW,1));
imshow(BW); zoom(3)
2 个评论
Matt J
2021-8-31
Thanks i found a way with bwboundaries, now i have another problem.
If so, you should post it as a new question.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!