What formula MATLAB uses to find centroid of image?

3 views (last 30 days)
Explorer on 24 Feb 2014
Answered: Walter Roberson on 24 Feb 2014
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


Community Treasure Hunt

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

Start Hunting!

Translated by