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

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

public void ComputePhaseCorrelation(
	FourierSpectrumBatch spectrumBatch1,
	FourierSpectrumBatch spectrumBatch2,
	FourierSpectrumBatch targetSpectrumBatch

OnlineSystem ArgumentNullException Thrown when spectrumBatch1, spectrumBatch2 and/or targetSpectrumBatch are null.
OnlineSystem ArgumentException Thrown when the dimensions of the FourierSpectrumBatch arguments are not identical.

Use this method to compute the phase-correlation between two FourierSpectrumBatch 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 spectrumBatch1 by the complex-conjugate of spectrumBatch2. The result is divided by its modulus and stored in targetSpectrumBatch. targetSpectrumBatch can be the same object as spectrumBatch1 or spectrumBatch2, in which case the original values are overwritten by the result.

See Also