Lably
Skip to content

Image moment

Weighted average/moment of some pixel intensities

  • 4 min read
  • 4 chapters

Related on Lably

Through Digital image processing, Computer vision and Weighted arithmetic mean

Image moments are useful to describe objects after segmentation. Simple properties of the image which are found via image moments include area (or total intensity), its centroid, and information about its orientation.

Raw moments

For a 2D continuous function f(x,y) the moment (sometimes called "raw moment") of order (p + q) is defined as

Mpq=∫−∞∞∫−∞∞xpyqf(x,y)dxdy

for p,q = 0,1,2,... Adapting this to scalar (grayscale) image with pixel intensities I(x,y), raw image moments Mij are calculated by

Mij=∑x∑yxiyjI(x,y)

In some cases, this may be calculated by considering the image as a probability density function, i.e., by dividing the above by

∑x∑yI(x,y)

A uniqueness theorem states that if f(x,y) is piecewise continuous and has nonzero values only in a finite part of the xy plane, moments of all orders exist, and the moment sequence (Mpq) is uniquely determined by f(x,y). Conversely, (Mpq) uniquely determines f(x,y). In practice, the image is summarized with functions of a few lower order moments.

Examples

Simple image properties derived via raw moments include:

  • Area (for binary images) or sum of grey level (for greytone images):M00
  • Centroid: {x¯,y¯}={M10M00,M01M00}

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Robotics