183 printf(
"error: CByteImage::eRGB24Split to 3-Channel CFloatImage not supported.");
bool SaveToFile(const char *pFileName) const
Saves an image to a file.
float * pixels
The pointer to the the pixels.
bool IsCompatible(const CFloatImage *pImage) const
Checks whether two images are compatible or not.
int width
The width of the image in pixels.
GLenum GLsizei GLenum GLenum const GLvoid * image
bool LoadFromFile(const char *pFileName)
Loads an image from a file.
bool LoadFromFile(const char *pFileName)
Loads an image from a file.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
int numberOfChannels
Number of channels per pixel.
~CFloatImage()
The destructor.
bool ConvertImage(const CByteImage *pInputImage, CByteImage *pOutputImage, bool bFast=false, const MyRegion *pROI=0)
Converts a grayscale CByteImage to an RGB CByteImage image and vice versa.
int width
The width of the image in pixels.
int height
The height of the image in pixels.
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
int height
The height of the image in pixels.
GLenum GLsizei GLsizei height
ImageType
Enum specifying the supported image types.
bool SaveToFile(const char *pFileName) const
Saves an image to a file.
ImageType type
The type of the image.
int bytesPerPixel
The number of bytes used for encoding one pixel.
bool m_bOwnMemory
Flag signaling if memory is to be freed or not.
CFloatImage()
The default constructor.
Data structure for the representation of any image type (arbitrary number of channels) using the data...