If I am given a image of black circle with white background, how can I find the exact center of that circle?
Show older comments
If I am given a image of black circle with white background, how can I find the exact center of that circle?
Accepted Answer
More Answers (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
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!