41 #ifndef __FLOAT_IMAGE_H__
42 #define __FLOAT_IMAGE_H__
88 CFloatImage(
int nImageWidth,
int nImageHeight,
int nNumberOfChannels,
bool bHeaderOnly =
false);
bool m_bOwnMemory
Flag signaling if memory is to be freed or not.
int height
The height of the image in pixels.
float * pixels
The pointer to the the pixels.
~CFloatImage()
The destructor.
bool SaveToFile(const char *pFileName) const
Saves an image to a file.
Data structure for the representation of any image type (arbitrary number of channels) using the data...
int width
The width of the image in pixels.
bool IsCompatible(const CFloatImage *pImage) const
Checks whether two images are compatible or not.
int bytesPerPixel
The number of bytes used for encoding one pixel.
CFloatImage()
The default constructor.
int numberOfChannels
Number of channels per pixel.
bool LoadFromFile(const char *pFileName)
Loads an image from a file.