ZeroCrossing

Computes specific zero crossing measure.

Syntax

IppStatus ippsZeroCrossing_16s32f(const Ipp16s* pSrc, Ipp32u len, Ipp32f* pValZC, IppsZCType zcType);

IppStatus ippsZeroCrossing_32f(const Ipp32f* pSrc, Ipp32u len, Ipp32f* pValZC, IppsZCType zcType);

Parameters

pSrc

Pointer to the source vector.

len

Number of elements in the vector.

pValZC

Pointer to the output value of the zero crossing measure.

zcType

Type of the zero crossing measure, possible values are ippsZCR, ippsZCXor or ippsZCC.

Description

The function ippsZeroCrossing is declared in the ipps.h file. This function computes specific zero crossing measure according to the parameter zcType. The result of zero crossing measurement is stored in pValZC. The calculations are performed in accordance with the formulas below.

If zcType = ippZCR, the function uses the following formula:

If zcType = ippZCXor, the function uses the following formula:



If zcType = ippZCC, the function uses the following formula:



Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc or pValZC pointer is NULL.

ippStsRangeErr

Indicates an error when zcType has an invalid value.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.