Effacer les filtres
Effacer les filtres

how to detect white spot in an image????

2 vues (au cours des 30 derniers jours)
yogesh nandurkar
yogesh nandurkar le 5 Fév 2016
Commenté : Image Analyst le 8 Fév 2016
i am new one with matlab. i want do this programm detecting empty medicine strip...

Réponses (1)

Image Analyst
Image Analyst le 5 Fév 2016
[labeledImage, numSpots] = bwlabel(binaryImage);
  2 commentaires
yogesh nandurkar
yogesh nandurkar le 8 Fév 2016
Modifié(e) : Image Analyst le 8 Fév 2016
thanks for your help.... for detecting object i used regionprops(BW). and got the result...
stats = regionprops('table',bw,'Centroid',...
'MajorAxisLength','MinorAxisLength')
centers = stats.Centroid;
diameters = mean([stats.MajorAxisLength stats.MinorAxisLength],2);
radii = diameters/2;
Image Analyst
Image Analyst le 8 Fév 2016
Rather than averaging the major and minor axis lengths, you might want to consider asking for 'EquivDiameter' which is the diameter of a circle with the same number of pixels as your blob.
If I've solved, it then can you please "Accept this Answer"?

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by