Detect bright object in image
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
DAT VUONG
am 29 Aug. 2017
Kommentiert: DAT VUONG
am 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.
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 29 Aug. 2017
Bearbeitet: Image Analyst
am 29 Aug. 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.
See my File Exchange for the Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!