Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
icl::io::pylon::PylonColorConverter Class Reference

This is the color-conversion-class for Pylon images. More...

#include <PylonColorConverter.h>

List of all members.

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::ImgBaseconvert (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.
ColorConverterm_Converter
 A pointer to the currently used converter.
std::string m_ErrorMessage
 field for error message

Detailed Description

This is the color-conversion-class for Pylon images.


Constructor & Destructor Documentation

Constructor.

Destructor.


Member Function Documentation

Converts pImageBuffer into an internal ImageBase.

Returns:
a pointer to the converted image.

used to free all allocated resources

used to get all needed information about the image to convert

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.

makes all settings for the conv. of grayscale images.

makes all settings for the conv. of color images.

makes all settings for the conv. PackedRGB images.


Member Data Documentation

A pointer to the currently used converter.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines