Specifications
Image Statistics Functions
12-11
12
NormalizedCentralMoment
Computes a normalized
central moment.
double iplNormalizedCentralMoment(IplImage*
image
, int
mOrd
, int
nOrd
);
image
The image for which the moment will be
computed.
mOrd, nOrd
The integer exponents m and n (see the moment
definition in the beginning of this section).
These arguments must satisfy the condition
0
≤
mOrd
+
nOrd
≤ 3.
Discussion
The function iplNormalizedCentralMoment() computes the normalized
central moment U
U
(m,n)/(
nCols
m
·
nRows
n
) for the
image
.
Here U
U
(m,n) is the central moment,
nCols
and
nRows
are the numbers of
pixel columns and rows, respectively.