C# Класс AForge.Imaging.ComplexImage

Complex image.

The class is used to keep image represented in complex numbers sutable for Fourier transformations.

Sample usage:

// create complex image ComplexImage complexImage = ComplexImage.FromBitmap( image ); // do forward Fourier transformation complexImage.ForwardFourierTransform( ); // get complex image as bitmat Bitmap fourierImage = complexImage.ToBitmap( );

Initial image:

Fourier image:

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

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

Метод Описание
BackwardFourierTransform ( ) : void

Applies backward fast Fourier transformation to the complex image.

Clone ( ) : object

Clone the complex image.

ForwardFourierTransform ( ) : void

Applies forward fast Fourier transformation to the complex image.

FromBitmap ( Bitmap image ) : ComplexImage

Create complex image from grayscale bitmap.

FromBitmap ( BitmapData imageData ) : ComplexImage

Create complex image from grayscale bitmap.

ToBitmap ( ) : Bitmap

Convert complex image to bitmap.

Защищенные методы

Метод Описание
ComplexImage ( int width, int height ) : System

Initializes a new instance of the ComplexImage class.

The constractor is protected, what makes it imposible to instantiate this class directly. To create an instance of this class FromBitmap(Bitmap) or FromBitmap(BitmapData) method should be used.

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

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

Applies backward fast Fourier transformation to the complex image.
public BackwardFourierTransform ( ) : void
Результат void

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

Clone the complex image.
public Clone ( ) : object
Результат object

ComplexImage() защищенный Метод

Initializes a new instance of the ComplexImage class.
The constractor is protected, what makes it imposible to instantiate this class directly. To create an instance of this class FromBitmap(Bitmap) or FromBitmap(BitmapData) method should be used.
protected ComplexImage ( int width, int height ) : System
width int Image width.
height int Image height.
Результат System

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

Applies forward fast Fourier transformation to the complex image.
public ForwardFourierTransform ( ) : void
Результат void

FromBitmap() публичный статический Метод

Create complex image from grayscale bitmap.
The source image has incorrect pixel format. Image width and height should be power of 2.
public static FromBitmap ( Bitmap image ) : ComplexImage
image System.Drawing.Bitmap Source grayscale bitmap (8 bpp indexed).
Результат ComplexImage

FromBitmap() публичный статический Метод

Create complex image from grayscale bitmap.
The source image has incorrect pixel format. Image width and height should be power of 2.
public static FromBitmap ( BitmapData imageData ) : ComplexImage
imageData System.Drawing.Imaging.BitmapData Source image data (8 bpp indexed).
Результат ComplexImage

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

Convert complex image to bitmap.
public ToBitmap ( ) : Bitmap
Результат System.Drawing.Bitmap