The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Generalized cross correlation
Replies: 5   Last Post: Jan 25, 2013 11:26 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Kamran Iranpour

Posts: 22
Registered: 7/28/11
Generalized cross correlation
Posted: Aug 20, 2012 3:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Generelized cross-correlation (GCC) is said to be a better estimate of
cross-correlation for time-delay estimation between channels. It is a
whitening technique on cross-cspectra.
I have this small code for computing the GCC:

fChannel1 = fft(channel1);
fChannel2 = fft(channel2);
conjFChannel2 = conj(fChannel2);
num = (fChannel1).*conjFChannel2;
den = abs((fChannel1).*(conjFChannel2));
fGeneralized = num./(den+eps);
generalizedCrossCorrelation = ifft(fGeneralized);
[maxcorr phind] = max(fftshift(generalizedCrossCorrelation));

But my "phind" which is is the index of maximum is always zero. Is
anyone familiar with the technique?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.