- Image moments
Used in
image processing ,computer vision and related fields, image moments are certain particular weighted averages ("moments") of the image pixels' intensities, or functions of those moments, usually chosen to have some attractive property or interpretation.They 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 2-D continuous function "f"("x","y") the moment (sometimes called "raw moment") of order ("p" + "q") is defined as :
for "p","q" = 0,1,2,...Adapting this to scalar (greytone) image with pixel intensities "I"("x","y"), raw image moments "Mij" are calculated by
:
In some cases, this may be calculated by considering the image as a
probability density function , "i.e.", by dividing the above by: A uniqueness theorem (Papoulis [1991] ) 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): "M"00
* Centroid: {} = {"M"10/"M"00, "M"01/"M"00 }Central moments
Central moments are defined as
:
where and are the components of the
centroid .If is a digital image, then the previous equation becomes
:
The central moments of order up to are:
::::::::::
It can be shown that::
Central moments are translational invariant.
Examples
Information about image orientation can be derived by first using the second order central moments to construct a
covariance matrix .:::
The
covariance matrix of the image is now:.
The
eigenvector s of this matrix correspond to the major and minor axes of the image intensity, so the orientation can thus be extracted from the angle of the eigenvector associated with the largest eigenvalue. It can be shown that this angle Θ is given by the following formula::
The
eigenvalue s of the covariance matrix can easily be shown to be:
and are proportional to the squared length of the eigenvector axes. The relative difference in magnitude of the eigenvalues are thus an indication of the eccentricity of the image, or how elongated it is. The eccentricity is
:
Scale invariant moments
Moments "ηi j" where "i" + "j" ≥ 2 can be constructed to be invariant to both translation and changes in scale by dividing the corresponding central moment by the properly scaled (00)th moment, using the following formula.
:
Rotation invariant moments
It is possible to calculate moments which are invariant under translation, changes in scale, and also "
rotation ". Most frequently used are the Hu set of invariant moments::
The first one, "I"1, is roughly proportional to the
moment of inertia around the image's centroid, if the pixels' intensities were interpreted as physical density. The last one, "I"7, is skew invariant, which enables it to distinguish mirror images of otherwise identical images.A general theory on deriving complete and independent sets of rotation invariants was proposed by J. Flusser and T. Suk.
External links
* [http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/OWENS/LECT2/node3.html Analysis of Binary Images] , University of Edinburgh
* [http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/SHUTLER3/CVonline_moments.html Statistical Moments] , University of EdinburghReferences
* M. K. Hu, "Visual Pattern Recognition by Moment Invariants", IRE Trans. Info. Theory, vol. IT-8, pp.179-187, 1962.
* J. Flusser: "On the Independence of Rotation Moment Invariants", Pattern Recognition, vol. 33, pp. 1405-1410, 2000.
* J. Flusser and T. Suk, "Rotation Moment Invariants for Recognition of Symmetric Objects", IEEE Trans. Image Proc., vol. 15, pp. 3784-3790, 2006.
Wikimedia Foundation. 2010.