Isolate the outline of a shape.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Perrakis
am 31 Aug. 2021
Kommentiert: Matt J
am 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?
0 Kommentare
Akzeptierte Antwort
Matt J
am 31 Aug. 2021
Bearbeitet: Matt J
am 31 Aug. 2021
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 Kommentare
Matt J
am 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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Computer Vision with Simulink finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!