图像的质心是什么?

What is the centroid of an image?

我目前正在阅读图像时刻,我看到图像质心开始被描述为图像中​​的质心,但这对我来说不是很直观。

所以我的问题是:

在使用图像矩进行图像分析的背景下,什么是质心以及它们有什么相关性(它们给我什么信息,我如何重新利用它们?)。

请阅读https://en.wikipedia.org/wiki/Centroid

In mathematics and physics, the centroid or geometric center of a plane figure is the arithmetic mean position of all the points in the shape.

如果您想在二值图像中找到一组像素的质心,您可以计算平均坐标。如果是灰度图像,您可以使用像素的灰度值来计算加权平均位置。

应用:任何需要形状质心的地方。例如,您如何描述图像中某物的位置?