How to count grain in which the image is eroded?
2 ビュー (過去 30 日間)
古いコメントを表示
Jothika Charlees
2017 年 1 月 20 日
コメント済み: Walter Roberson
2017 年 1 月 20 日
Hi, I'm a student and doing a project in image processing. I have to label and count this image .
0 件のコメント
採用された回答
Walter Roberson
2017 年 1 月 20 日
Unless you expect the count to be something other than 12, you can use bwlabel()
4 件のコメント
Walter Roberson
2017 年 1 月 20 日
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!