Main Page | Class Hierarchy | Class List | File List | Class Members

LIBCP::ComplexImage Class Reference

represents a complex space More...

#include <compleximage.h>

Inheritance diagram for LIBCP::ComplexImage:

LIBCP::BaseImage LIBCP::DataObject List of all members.

Public Member Functions

 ~ComplexImage ()
int convertToImage (Image *dst)
bool in (int x, int y)
Complex & number (int x, int y)
void flip ()
void lock ()
void unlock ()
Complex * getRow (int y)
ComplexImageoperator= (ComplexImage &i)
ComplexImageoperator *= (ComplexImage &i)
bool isShifted ()
void shifted (bool shift)

Static Public Member Functions

ComplexImagecreateComplexImage (Image *src)
ComplexImagecreateComplexImage (int width, int height, int type)

Detailed Description

represents a complex space


Constructor & Destructor Documentation

LIBCP::ComplexImage::~ComplexImage  ) 
 

Destructor properly cleans up and frees the memory of the complex image


Member Function Documentation

int LIBCP::ComplexImage::convertToImage Image dst  ) 
 

Convert a complex image to real image. The value of the corresponding pixel in the real image is calculated as the distance in the polar coordinate space of the complex numbers to the center of the image. The values are logarithmicaly scaled in order to have a "good looking" result

ComplexImage * LIBCP::ComplexImage::createComplexImage int  width,
int  height,
int  type
[static]
 

Create an empty complex image

Parameters:
width image width
height image height
type image type

ComplexImage * LIBCP::ComplexImage::createComplexImage Image src  )  [static]
 

Public method to create a complex image form a real image
The pixel value is taken as the real value of the corresponding complex number.

void LIBCP::ComplexImage::flip  ) 
 

Flip the complex image. Used to simplify the fast fourier transformation

ComplexImage & LIBCP::ComplexImage::operator *= ComplexImage i  ) 
 

The overloaded multiply equal operator for the complex image class.
Multiplies to another complex image with this one. The multiplication is done element by element, and NOT according to the matrix multiplication rule!!

ComplexImage & LIBCP::ComplexImage::operator= ComplexImage i  ) 
 

The overloaded equal operator for the complex image class


The documentation for this class was generated from the following files:
Generated on Wed May 26 16:43:53 2004 for libcp by doxygen 1.3.7