Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

GetSpatialMoment

Retrieves image spatial moment of the specified order, computed by
ippiMoments
.

Syntax

IppStatus ippiGetSpatialMoment_64f(const IppiMomentState_64f*
pState
, int
mOrd
, int
nOrd
, int
nChannel
, IppiPoint
roiOffset
, Ipp64f*
pValue
);
Include Files
ippi.h
Domain Dependencies
Headers:
ippcore.h
,
ippvm.h
,
ipps.h
Libraries:
ippcore.lib
,
ippvm.lib
,
ipps.lib
Parameters
pState
Pointer to the structure that stores image moments.
mOrd, nOrd
Integer power exponents defining the moment order. These arguments must satisfy the condition 0
mOrd
+
nOrd
3.
nChannel
The channel for which the moment is returned.
roiOffset
Offset in pixels of the ROI origin (top left corner) from the image origin.
pValue
Pointer to the retrieved moment value.
Description
This function returns the pointer
pValue
to the spatial moment that was previously computed by the ippiMoments function. All spatial moment values are computed by ippiMoments relative to the image ROI origin. You may also obtain spatial moment values relative to different point in the image, using the appropriate
roiOffset
settings.
The moment order is specified by the integer exponents
mOrd, nOrd.
Return Values
ippStsNoErr
Indicates no error. Any other value indicates an error or a warning.
ippStsNullPtrErr
Indicates an error condition if
pState
or
pValue
pointer is
NULL
.
ippStsContextMatchErr
Indicates an error condition if a pointer to an invalid structure is passed.
ippStsSizeErr
Indicates an error condition if
mOrd + nOrd
is greater than 3, or
nChannel
has an illegal value.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserverd for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804