ImageGear .NET
WienerRestore Method




ImageGear.Core.ImGearRasterPage class object to be processed.
Vector which represents the Point Spread Function (PSF) in spatial domain, also called Degradation Function.
Size of PSF passed in.
The constant for Wiener Filtering.
Performs image restoration using Wiener filtering in the frequency domain.
Syntax
'Declaration
 
Public Shared Sub WienerRestore( _
   ByVal page As ImGearRasterPage, _
   ByVal spreadFunctionVector() As Double, _
   ByVal spreadFunctionVectorSize As Integer, _
   ByVal wienerConstant As Double _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim spreadFunctionVector() As Double
Dim spreadFunctionVectorSize As Integer
Dim wienerConstant As Double
 
ImGearFrequencyProcessing.WienerRestore(page, spreadFunctionVector, spreadFunctionVectorSize, wienerConstant)
public static void WienerRestore( 
   ImGearRasterPage page,
   double[] spreadFunctionVector,
   int spreadFunctionVectorSize,
   double wienerConstant
)
public: static void WienerRestore( 
   ImGearRasterPage* page,
   double[]* spreadFunctionVector,
   int spreadFunctionVectorSize,
   double wienerConstant
) 
public:
static void WienerRestore( 
   ImGearRasterPage^ page,
   array<double>^ spreadFunctionVector,
   int spreadFunctionVectorSize,
   double wienerConstant
) 

Parameters

page
ImageGear.Core.ImGearRasterPage class object to be processed.
spreadFunctionVector
Vector which represents the Point Spread Function (PSF) in spatial domain, also called Degradation Function.
spreadFunctionVectorSize
Size of PSF passed in.
wienerConstant
The constant for Wiener Filtering.
Remarks
This method performs image restoration using Wiener filtering in the frequency domain. This filter is also commonly referred to as the minimum mean square error filter or the least square error filter.

Usually Wiener filtering can produce better results than inverse filtering.

Before using this method, like other frequency processing methods, InitializeFFTW method must be called first to initialize the support for FFTW.

Can be applied only to 8bit grayscale images with one channel.

Method ImGearFrequencyProcessingVerifier.CanApplyWienerRestore method can be called to check whether the operation can be performed or not.

See Also

Reference

ImGearFrequencyProcessing Class
ImGearFrequencyProcessing Members
ImGearRasterPage Class

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback