Developer Reference for Intel® Integrated Performance Primitives
Computes specific zero crossing measure.
IppStatus ippsZeroCrossing_16s32f(const Ipp16s* pSrc, Ipp32u len, Ipp32f* pValZCR, IppsZCType zcType);
IppStatus ippsZeroCrossing_32f(const Ipp32f* pSrc, Ipp32u len, Ipp32f* pValZCR, IppsZCType zcType);
ipps.h
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
pSrc |
Pointer to the source vector. |
len |
Number of elements in the vector. |
pValZCR |
Pointer to the output value of the zero crossing measure. |
zcType |
Type of the zero crossing measure, possible values are ippsZCR, ippsZCXor or ippsZCC. |
This function computes specific zero crossing measure according to the parameter zcType. The result of zero crossing measurement is stored in pValZCR. 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:
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when the pSrc or pValZCR pointer is NULL. |
ippStsRangeErr |
Indicates an error when zcType has an invalid value. |