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

LIBCP::DoubleImage Class Reference

represents an image with double values More...

#include <doubleimage.h>

Inheritance diagram for LIBCP::DoubleImage:

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

Public Member Functions

 ~DoubleImage ()
int convertToImage (Image *dst)
bool in (int x, int y)
double & number (int x, int y)
void lock ()
void unlock ()
bool isValidPixel (int x, int y)
DoubleImageoperator= (DoubleImage &i)
DoubleImageoperator *= (DoubleImage &i)

Static Public Member Functions

DoubleImagecreateDoubleImage (Image *img)
DoubleImagecreateDoubleImage (int width, int height, int type)

Detailed Description

represents an image with double values


Constructor & Destructor Documentation

LIBCP::DoubleImage::~DoubleImage  ) 
 

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


Member Function Documentation

int LIBCP::DoubleImage::convertToImage Image dst  ) 
 

Convert this double image to a regular libcp image. The double values are just normalized and then put into the new image dst is the destination image 0 if the operation could be performed correctly. Negative values otherwise.

DoubleImage * LIBCP::DoubleImage::createDoubleImage int  width,
int  height,
int  type
[static]
 

Public method to create an empty double image with a given height and width.

DoubleImage * LIBCP::DoubleImage::createDoubleImage Image src  )  [static]
 

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

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

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

DoubleImage & LIBCP::DoubleImage::operator= DoubleImage i  ) 
 

The overloaded equal operator for the double 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