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

14 次查看(过去 30 天)
Which one of the two calculates the center of gravity of the entire image. Thank you.

回答(1 个)

Matt J
Matt J 2013-3-25
编辑:Matt J 2013-3-25
'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 个评论
Matt J
Matt J 2013-3-26
编辑:Matt J 2013-3-26
Is weighted centroid the center of gravity of the image?
If the pixel intensities are the "mass" of the image, then yes.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by