Specifications
Image Statistics Functions
12-9
12
SpatialMoment
Computes a spatial
moment.
double iplSpatialMoment(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 iplSpatialMoment() computes the spatial moment M
U
(m,n)
for the
image
.
CentralMoment
Computes a central
moment.
double iplCentralMoment(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.