What formula MATLAB uses to find centroid of image?

1 view (last 30 days)
I know, we can get centroid by writing following:
stat = regionprops(BW, 'Centroid') ;
c = stat.Centroid
But how can I find centroid of image using mathematical expressions?
I want to know what expression MATLAB uses to find centroid.

Answers (1)

Walter Roberson
Walter Roberson on 24 Feb 2014

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!