148 void CFloatImage::FreeMemory()
183 printf(
"error: CByteImage::eRGB24Split to 3-Channel CFloatImage not supported.");
bool m_bOwnMemory
Flag signaling if memory is to be freed or not.
ImageType
Enum specifying the supported image types.
int height
The height of the image in pixels.
bool LoadFromFile(const char *pFileName)
Loads an image from a file.
float * pixels
The pointer to the the pixels.
bool SaveToFile(const char *pFileName) const
Saves an image to a file.
~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...
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.
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.
ImageType type
The type of the image.
int width
The width of the image in pixels.
int height
The height of the image in pixels.
CFloatImage()
The default constructor.
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.
bool LoadFromFile(const char *pFileName)
Loads an image from a file.