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
Afficher le fichier Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

Clone() public méthode

Clone the complex image.
public Clone ( ) : object
Résultat object

ComplexImage() protected méthode

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.
Résultat System

ForwardFourierTransform() public méthode

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

FromBitmap() public static méthode

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).
Résultat ComplexImage

FromBitmap() public static méthode

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).
Résultat ComplexImage

ToBitmap() public méthode

Convert complex image to bitmap.
public ToBitmap ( ) : Bitmap
Résultat System.Drawing.Bitmap