How can i count black spots in an image?
12 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
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
2023-6-3
编辑:Image Analyst
2023-6-4
@Abdur Rahman search the image processing literature for published papers on animal counting:
https://www.google.com/search?hl=En&as_sitesearch=www.visionbib.com%2F&bthG=Google%2BSearch&q=cattle
For example here is one paper:
Kumar, S.[Santosh], Singh, S.K.[Sanjay Kumar], Singh, R.S.[Ravi Shankar], Singh, A.K.[Amit Kumar], Tiwari, S.[Shrikant],
Real-time recognition of cattle using animal biometrics,
RealTimeIP(13), No. 3, September 2017, pp. 505-526.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!