What is the difference between centroid and weighted centroid in regionprops?

37 Ansichten (letzte 30 Tage)
Which one of the two calculates the center of gravity of the entire image. Thank you.

Antworten (1)

Matt J
Matt J am 25 Mär. 2013
Bearbeitet: Matt J am 25 Mär. 2013
'WeightedCentroid' will use the pixel intensities in the image region as weights in the centroid calculation. With 'Centroid', all pixels in the region get equal weight.
  4 Kommentare
Matt J
Matt J am 26 Mär. 2013
Bearbeitet: Matt J am 26 Mär. 2013
Is weighted centroid the center of gravity of the image?
If the pixel intensities are the "mass" of the image, then yes.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by