Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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?

Thanks,

Kamran






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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.