Image Component Library (ICL)
|
This is the color-conversion-class for Pylon images. More...
#include <PylonColorConverter.h>
Public Member Functions | |
PylonColorConverter () | |
Constructor. | |
~PylonColorConverter () | |
Destructor. | |
void | resetConversion (int width, int height, int pixel_size_bits, long buffer_size, Pylon::PixelType pixel_type, std::string pixel_type_name) |
makes the conversion adapt to the passed properties on next convert. | |
icl::core::ImgBase * | convert (const void *imgBuffer, ConvBuffers *b) |
Converts pImageBuffer into an internal ImageBase. | |
Private Member Functions | |
void | freeAll () |
used to free all allocated resources | |
void | initConversion () |
frees allocated memory and reinitializes thr color conversion. | |
void | getInfo () |
used to get all needed information about the image to convert | |
void | setConversionRGB () |
makes all settings for the conv. of color images. | |
void | setConversionRGBPacked () |
makes all settings for the conv. PackedRGB images. | |
void | setConversionMono () |
makes all settings for the conv. of grayscale images. | |
Private Attributes | |
utils::Mutex | m_Mutex |
A mutex lock for concurrency. | |
ColorConverter * | m_Converter |
A pointer to the currently used converter. | |
std::string | m_ErrorMessage |
field for error message |
This is the color-conversion-class for Pylon images.
Constructor.
Destructor.
icl::core::ImgBase* icl::io::pylon::PylonColorConverter::convert | ( | const void * | imgBuffer, |
ConvBuffers * | b | ||
) |
Converts pImageBuffer into an internal ImageBase.
void icl::io::pylon::PylonColorConverter::freeAll | ( | ) | [private] |
used to free all allocated resources
void icl::io::pylon::PylonColorConverter::getInfo | ( | ) | [private] |
used to get all needed information about the image to convert
void icl::io::pylon::PylonColorConverter::initConversion | ( | ) | [private] |
frees allocated memory and reinitializes thr color conversion.
void icl::io::pylon::PylonColorConverter::resetConversion | ( | int | width, |
int | height, | ||
int | pixel_size_bits, | ||
long | buffer_size, | ||
Pylon::PixelType | pixel_type, | ||
std::string | pixel_type_name | ||
) |
makes the conversion adapt to the passed properties on next convert.
void icl::io::pylon::PylonColorConverter::setConversionMono | ( | ) | [private] |
makes all settings for the conv. of grayscale images.
void icl::io::pylon::PylonColorConverter::setConversionRGB | ( | ) | [private] |
makes all settings for the conv. of color images.
void icl::io::pylon::PylonColorConverter::setConversionRGBPacked | ( | ) | [private] |
makes all settings for the conv. PackedRGB images.
A pointer to the currently used converter.
std::string icl::io::pylon::PylonColorConverter::m_ErrorMessage [private] |
field for error message
when no appropriate color conversion could be found, an error message is saved here and printed on every call to convert.
A mutex lock for concurrency.