Download Cirrus Logic CS485 Specifications

Transcript
12
Image Statistics Functions
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 MU(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.
12-9