If I am given a image of black circle with white background, how can I find the exact center of that circle?
Ältere Kommentare anzeigen
If I am given a image of black circle with white background, how can I find the exact center of that circle?
Akzeptierte Antwort
Weitere Antworten (1)
Is this a binary image? If not, you'll need to do some thresholding. Once you do that, you can use regionprops (if you have the image processing toolbox installed).
spotC = regionprops(image_mask,'Centroid');
For more:
help regionprops
1 Kommentar
abhinav
am 15 Jul. 2013
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!