centroid calculation for multiple patches in an image
5 views (last 30 days)
Show older comments
LM Pant
on 24 Oct 2020
Commented: Image Analyst
on 14 Dec 2022
hello i have an experimental image having many bright patches. I want to compute the centroid of each patch. if anybody can help how to compute.
0 Comments
Accepted Answer
Shantanu Dwivedi
on 30 Oct 2020
Edited: Shantanu Dwivedi
on 30 Oct 2020
Assuming that the bright patches in your image are circular blobs, you can convert the image to black and white first and then find the centroid for each white patch using ‘regionprops’ command.
Refer to the ‘Estimate Center and Radii of Circular Objects and Plot Circles’ section of the following documentation page to get more help.
5 Comments
Image Analyst
on 14 Dec 2022
@Satyam Satyam I'm sure he was. If you want a full demo, see my Image Processing Tutorial in my File Exchange:
More Answers (0)
See Also
Categories
Find more on Lighting, Transparency, and Shading in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!