Effacer les filtres
Effacer les filtres

Detect bright object in image

11 vues (au cours des 30 derniers jours)
DAT VUONG
DAT VUONG le 29 Août 2017
Commenté : DAT VUONG le 4 Sep 2017
Could you please help me related to identify exactly central coordination of bright Objects in an image. For example, in image below, i want to know the exact position of each LED. Thanks for your help.

Réponse acceptée

Image Analyst
Image Analyst le 29 Août 2017
Modifié(e) : Image Analyst le 29 Août 2017
Try this:
binaryImage = grayImage > 128;
[labeledImage, numSpots] = bwlabel(binaryImage);
props = regionrops(labeledImage, 'Centroid');
props is a structure array where Centroid is a field of the structure. You can get a table variable out instead of a structure array if you want.
  1 commentaire
DAT VUONG
DAT VUONG le 4 Sep 2017
Thanks a lot!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by