Core Optical, Inc.
FrequencyDomainUtilities ComputePhaseCorrelation Method (FourierSpectrum, FourierSpectrum, FourierSpectrum)Industrial Strength, Scientific Grade
Computes the phase-correlation (normalized cross-power spectrum) between two FourierSpectrum objects.

Namespace: PrecisionImage.FrequencyDomainProcessing
Assembly: PrecisionImage (in PrecisionImage.dll) Version: (

public void ComputePhaseCorrelation(
	FourierSpectrum spectrum1,
	FourierSpectrum spectrum2,
	FourierSpectrum targetSpectrum

OnlineSystem ArgumentNullException Thrown when spectrum1, spectrum2 and/or targetSpectrum are null.
OnlineSystem ArgumentException Thrown when the dimensions of the FourierSpectrum arguments are not identical.

Use this method to compute the phase-correlation between two FourierSpectrum objects. The phase correlation is defined as the cross-power spectrum normalized by its modulus. The cross-power spectrum in this case is computed by multiplying spectrum1 by the complex-conjugate of spectrum2. The result is divided by its modulus and stored in targetSpectrum. targetSpectrum can be the same object as spectrum1 or spectrum2, in which case the original values are overwritten by the result.

See Also