Core Optical, Inc.
FrequencyDomainUtilities ApplyWienerFilter Method (FourierSpectrum, FourierSpectrum, SourceData, Int32, SourceData, Int32, FourierSpectrum)Industrial Strength, Scientific Grade
Applies a Wiener filter to the input data spectrum using the the power spectra of the noise and original signal.

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

public void ApplyWienerFilter(
	FourierSpectrum dataSpectrum,
	FourierSpectrum psfSpectrum,
	SourceData noisePowerSpectrum,
	int noiseChannel,
	SourceData imagePowerSpectrum,
	int imageChannel,
	FourierSpectrum resultSpectrum
)

Parameters

dataSpectrum
Type: PrecisionImage.FrequencyDomainProcessing FourierSpectrum
A FourierSpectrum type containing the spectrum of the data to filter.
psfSpectrum
Type: PrecisionImage.FrequencyDomainProcessing FourierSpectrum
A FourierSpectrum type containing the spectrum of the point spread function.
noisePowerSpectrum
Type: PrecisionImage SourceData
A SourceData type containing the power spectrum of the noise.
noiseChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel in noisePowerSpectrum containing the power spectrum values.
imagePowerSpectrum
Type: PrecisionImage SourceData
A SourceData type containing the power spectrum of the original image.
imageChannel
Type: OnlineSystem Int32
An OnlineInt32 type indicating the channel in imagePowerSpectrum containing the power spectrum values.
resultSpectrum
Type: PrecisionImage.FrequencyDomainProcessing FourierSpectrum
A FourierSpectrum type containg the specrum of the filtered result.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when either dataSpectrum, psfSpectrum, resultSpectrum , noisePowerSpectrum or imagePowerSpectrum are null.
OnlineSystem ArgumentException Thrown when the input spectra don't share identical dimensions.
OnlineSystem ArgumentOutOfRangeException Thrown when either noiseChannel or imageChannel refer to channels that do not exist in their source objects.
Remarks

Use this method to apply a Weiner filter to the spectrum data in dataSpectrum using the point-spread-function spectrum specified in psfSpectrum, along with the noise and original signal power spectra contained in the noisePowerSpectrum and imagePowerSpectrum arguments respectively. 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