Centroid
The centroid draws inspiration from the centroid or geometric center defined in mathematics and physics, whereby it represents the arithmetic mean position of all the points in the figure. In computer vision parlance, the centroid is an image moment: a weighted average (moment) of the image pixels' intensities.
In our context, the centroid represents the arithmetic mean row in a column. For each column in an image, we transform the pixel values into row probabilities by normalizing them by the column sum, after which we take the expected row value, thus obtaining the spectral centroid. Naturally, this can be extended to include columns only or both rows and columns.
It is inspired by the spectral centroid (Peeters, 2004), a feature ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access