Core Optical, Inc.
FrequencyDomainUtilities ApplyConstrainedLeastSquaresFilter Method Industrial Strength, Scientific Grade
Applies a constrained least-squares frequency filter to the input spectrum.

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

public void ApplyConstrainedLeastSquaresFilter(
	FourierSpectrum dataSpectrum,
	FourierSpectrum psfSpectrum,
	FourierSpectrum smoothnessSpectrum,
	double gamma,
	FourierSpectrum resultSpectrum
)
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when either dataSpectrum, psfSpectrum, smoothnessSpectrum, or resultSpectrum are null.
OnlineSystem ArgumentException Thrown when the input spectra don't share identical dimensions.
Remarks

Use this method to apply a constrained least-squares filter to the input spectrum, using the point spread function spectrum and a smoothing spectrum to dampen oscillations arising from the inverse filtering process. A typical spectrum to use for smoothnessSpectrum is that of a low-pass filter. gamma is a constant that is multiplied against smoothnessSpectrum to furhter modulate the result and is typically chosen experimentally. The filtered spectum is stored in resultSpectrum. resultSpectrum can be the same object as dataSpectrum or psfSpectrum, in which case the original spectral data in either of those objects is overwritten by the filtered result.
See Also