Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Generalized cross correlation
Posted:
Aug 20, 2012 3:02 AM
|
|
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
|
|
|
|