C# Класс 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:

Наследование: IComplexFilter
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Apply() публичный Метод

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.
Результат void

FrequencyFilter() публичный Метод

Initializes a new instance of the FrequencyFilter class.
public FrequencyFilter ( ) : System
Результат System

FrequencyFilter() публичный Метод

Initializes a new instance of the FrequencyFilter class.
public FrequencyFilter ( IntRange frequencyRange ) : System
frequencyRange AForge.IntRange Range of frequencies to keep.
Результат System