C# Class Accord.Imaging.ComplexFilters.FrequencyFilter

Filtering of frequencies outside of specified range in complex Fourier transformed image.

The filer keeps only specified range of frequencies in complex Fourier transformed image. The rest of frequencies are zeroed.

Sample usage:

// create complex image ComplexImage complexImage = ComplexImage.FromBitmap( image ); // do forward Fourier transformation complexImage.ForwardFourierTransform( ); // create filter FrequencyFilter filter = new FrequencyFilter( new IntRange( 20, 128 ) ); // apply filter filter.Apply( complexImage ); // do backward Fourier transformation complexImage.BackwardFourierTransform( ); // get complex image as bitmat Bitmap fourierImage = complexImage.ToBitmap( );

Initial image:

Fourier image:

Inheritance: IComplexFilter
Datei anzeigen Open project: accord-net/framework

Public Methods

Method Description
Apply ( ComplexImage complexImage ) : void

Apply filter to complex image.

FrequencyFilter ( ) : System

Initializes a new instance of the FrequencyFilter class.

FrequencyFilter ( IntRange frequencyRange ) : System

Initializes a new instance of the FrequencyFilter class.

Method Details

Apply() public method

Apply filter to complex image.
The source complex image should be Fourier transformed.
public Apply ( ComplexImage complexImage ) : void
complexImage ComplexImage Complex image to apply filter to.
return void

FrequencyFilter() public method

Initializes a new instance of the FrequencyFilter class.
public FrequencyFilter ( ) : System
return System

FrequencyFilter() public method

Initializes a new instance of the FrequencyFilter class.
public FrequencyFilter ( IntRange frequencyRange ) : System
frequencyRange AForge.IntRange Range of frequencies to keep.
return System