How can i count black spots in an image?

12 vues (au cours des 30 derniers jours)
Lucas Echeverz
Lucas Echeverz le 12 Nov 2015
Modifié(e) : Image Analyst le 4 Juin 2023
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.

Réponse acceptée

Image Analyst
Image Analyst le 12 Nov 2015
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 commentaires
Image Analyst
Image Analyst le 3 Juin 2023
Modifié(e) : Image Analyst le 4 Juin 2023
@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 le 3 Juin 2023
Okay thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Animation dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by