Detect bright object in image

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.

 Respuesta aceptada

Image Analyst
Image Analyst el 29 de Ag. de 2017
Editada: Image Analyst el 29 de Ag. de 2017

0 votos

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.

Más respuestas (0)

Preguntada:

el 29 de Ag. de 2017

Comentada:

el 4 de Sept. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by