Developer Reference for Intel® Integrated Performance Primitives 2018

GetHuMoments

Retrieves image Hu moment invariants computed by ippiMoments function.

Syntax

IppStatus ippiGetHuMoments_64f(const IppiMomentState_64f* pState, int nChannel, IppiHuMoment_64f pHm);

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.

nChannel

The channel for which the moment is returned.

pHm

Pointer to the array containing the Hu moment invariants.

Description

This function returns the pointer pHm to the array of seven Hu moment invariants previously computed by the ippiMoments function.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or a warning.

ippStsNullPtrErr

Indicates an error condition if pState or pHm pointer is NULL.

ippStsContextMatchErr

Indicates an error condition if a pointer to an invalid structure is passed.

ippStsMoment00ZeroErr

Indicates an error condition if M(0,0) value is close to zero.

Example

GetHuMoments.c