How can i count black spots in an image?

12 ビュー (過去 30 日間)
Lucas Echeverz
Lucas Echeverz 2015 年 11 月 12 日
編集済み: Image Analyst 2023 年 6 月 4 日
I cannot figure out how to count the black spots on the image that I have got after some processing applied. Below you can find attached two images that I want to count that marks. The ideal will be to count the marks and display an alert or something like this that says "Number of circles: #" I used regionprops with any results.

採用された回答

Image Analyst
Image Analyst 2015 年 11 月 12 日
regionprops() works with white blobs, not black blobs. So just invert. But you can actually do the count with bwlabel():
[labeledImage, numberOfBlobs] = bwlabel(~binaryImage);
  3 件のコメント
Image Analyst
Image Analyst 2023 年 6 月 3 日
編集済み: Image Analyst 2023 年 6 月 4 日
@Abdur Rahman search the image processing literature for published papers on animal counting:
For example here is one paper:
Real-time recognition of cattle using animal biometrics,
RealTimeIP(13), No. 3, September 2017, pp. 505-526.
Abdur  Rahman
Abdur Rahman 2023 年 6 月 3 日
Okay thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by