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);

Parameters

pSrc1

Pointer to the first source vector.

pSrc2

Pointer to the second source vector.

len

Number of elements in the source and destination vectors.

pDst

Pointer to 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 as given by:



where



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

The function that has the NormMsuffix uses the scale factor that normalizes the absolute maximum of the correlation sums.

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 - 2010, Intel Corporation. All rights reserved.