C# Class 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:

Inheritance: ICloneable
Show file Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

BackwardFourierTransform() public method

Applies backward fast Fourier transformation to the complex image.
public BackwardFourierTransform ( ) : void
return void

Clone() public method

Clone the complex image.
public Clone ( ) : object
return object

ComplexImage() protected method

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.
return System

ForwardFourierTransform() public method

Applies forward fast Fourier transformation to the complex image.
public ForwardFourierTransform ( ) : void
return void

FromBitmap() public static method

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).
return ComplexImage

FromBitmap() public static method

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).
return ComplexImage

ToBitmap() public method

Convert complex image to bitmap.
public ToBitmap ( ) : Bitmap
return System.Drawing.Bitmap