MATLAB: If I am given a image of black circle with white background, how can I find the exact center of that circle

digital image processingimage processingImage Processing Toolbox

If I am given a image of black circle with white background, how can I find the exact center of that circle?

Best Answer

You use regionprops and ask for the centroid. That's pretty much what I do in my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 except that I do it on the coins (standard demo image that ships with the Image Processing Toolbox) so it has several circles (coins), not just one.