Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Mistake in Document for Cross Correlation

kierangu
Beginner
500 Views

Seems there is a mistake in IPP document about its cross correlation. It says pSrc2 is shifted for calculation. But my test indicates pSrc1 is shifted. The comments in header file seems comfirming my observation.

Anyone have the same conclusion?

0 Kudos
3 Replies
Chao_Y_Intel
Moderator
500 Views

Hi, Kierangu

Which cross correlation function areyou using? We will check the document.

Regards,

Chao

0 Kudos
kierangu
Beginner
500 Views

The function is ippsCrossCorr_***.

I realized that the documentation was right. However, the shifting is against common sense. Usually, the signal is shifted from left to right. The IPP function shifts from right to left. That's equivelant to shifting the other signal from left right. It caused me to think of mistaken document.

Anyway, calling

ippsCrossCorr_64f(x1,len,x2,len,y,(2*len-1),-(len-1))

equals matlab

y = xcorr(x2,x1);

0 Kudos
Chao_Y_Intel
Moderator
500 Views

Thanks for letting us know this.

0 Kudos
Reply