how can I obtain Boundary of an image with morphological operators?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sara
am 5 Sep. 2014
Bearbeitet: Image Analyst
am 6 Sep. 2014
how can I obtain Boundary of an image with morphological operators? for example my image is A...I want to obtain Boundary and fill Within the image. thanks
Akzeptierte Antwort
Image Analyst
am 5 Sep. 2014
I agree with Matt J. If you want an image you could also use bwperim(). To do it morphologically you'd call imerode() to shrink the blobs out one layer, then subtract that from the original
perimImage = binaryImage - imerode(binaryImage);
7 Kommentare
Image Analyst
am 5 Sep. 2014
No it doesn't. I do it all the time. Just do this:
filledImage = imfill(binaryImage, 'holes');
Again, I do it all the time so I know for a fact that it works.
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox 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!