Core Optical, Inc.
FrequencyDomainUtilities DivideSpectra Method (FourierSpectrumBatch, FourierSpectrumBatch, FourierSpectrumBatch)Industrial Strength, Scientific Grade
Divides (pointwise) one FourierSpectrumBatch by another.

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

public void DivideSpectra(
	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 divide (pointwise) one spectrum by another and retrieve the result. The spectrum to divide is contained in spectrumBatch1, while the denominator spectrum is spectrumBatch2. The result is stored in targetSpectrumBatch. targetSpectrumBatch can be the same object as spectrumBatch1 or spectrumBatch2, in which case the original values are overwritten by the result.

If the denominator is zero at a particular frequency, the result is assigned a value of zero.

See Also