CrossCorr

Estimates the cross-correlation of two vectors.

Syntax

IppStatus ippsCrossCorr_16s32s_Sfs (const Ipp16s* pSrc1, const Ipp16s* pSrc2, int len, Ipp32s* pDst, int scaleFactor);

IppStatus ippsCrossCorr_NormM_16s (const Ipp16s* pSrc1, const Ipp16s* pSrc2, int len, Ipp16s* pDst);IppStatus ippsCrossCorr_NR_16s (const Ipp16s* pSrc1, const Ipp16s* pSrc2, int len, Ipp16s* pDst, int lenDst);IppStatus ippsCrossCorr_NR_16s_Sfs (const Ipp16s* pSrc1, const Ipp16s* pSrc2, int len, Ipp16s* pDst, int lenDst, int scaleFactor);IppStatus ippsCrossCorr_NR_16s32s (const Ipp16s* pSrc1, const Ipp16s* pSrc2, Ipp32s len, Ipp32s* pDst, Ipp32s lenDst);

Parameters

pSrc1

Pointer to the first source vector.

pSrc2

Pointer to the second source vector.

len

Number of elements in the source vectors.

pDst

Pointer to the destination vector.

lenDst

Number of elements in the destination vector.

scaleFactor

Scale factor of the destination vector.

Description

The function ippsCrossCorr is declared in the ippsc.h file. This function estimates the cross-correlation between the vector pSrc1 and the vector pSrc2:



where



Results are stored in the vector pDst. Correlation sums are saturated. Scaling is performed according to the scaleFactor value.

The function with the NormM suffix uses the scale factor that normalizes the absolute maximum of the correlation sums.

The functions with the NR suffix use the nearest right rounding mode.

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when the pSrc1, pSrc2, or pDst pointer is NULL.

ippStsScaleRangeErr

Indicates an error when scaleFactor is negative.

ippStsSizeErr

Indicates an error when len is less than or equal to zero.


Submit feedback on this help topic

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