How to count grain in which the image is eroded?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jothika Charlees
am 20 Jan. 2017
Kommentiert: Walter Roberson
am 20 Jan. 2017
Hi, I'm a student and doing a project in image processing. I have to label and count this image .
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 20 Jan. 2017
Unless you expect the count to be something other than 12, you can use bwlabel()
4 Kommentare
Jothika Charlees
am 20 Jan. 2017
Bearbeitet: Walter Roberson
am 20 Jan. 2017
Walter Roberson
am 20 Jan. 2017
Yes, that is a labeled image in MATLAB terms. Each different area has been given a different number, and each different number has been represented as a different color based upon the current colormap() .
Perhaps what you wanted was some text written onto each blob. If so then use regionprops() to request the Centroid . Loop through the returned information, pull out the Centroid information, and text() the appropriate label number at that location.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 3-D Volumetric Image Processing 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!