Image Component Library (ICL)
Public Member Functions | Private Member Functions | Private Attributes | List of all members
icl::io::pylon::PylonColorConverter Class Reference

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

#include <PylonColorConverter.h>

Public Member Functions

 PylonColorConverter ()
 Constructor. More...
 
 ~PylonColorConverter ()
 Destructor. More...
 
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. More...
 
icl::core::ImgBaseconvert (const void *imgBuffer, ConvBuffers *b)
 Converts pImageBuffer into an internal ImageBase. More...
 

Private Member Functions

void freeAll ()
 used to free all allocated resources More...
 
void initConversion ()
 frees allocated memory and reinitializes thr color conversion. More...
 
void getInfo ()
 used to get all needed information about the image to convert More...
 
void setConversionRGB ()
 makes all settings for the conv. of color images. More...
 
void setConversionRGBPacked ()
 makes all settings for the conv. PackedRGB images. More...
 
void setConversionMono ()
 makes all settings for the conv. of grayscale images. More...
 

Private Attributes

utils::Mutex m_Mutex
 A mutex lock for concurrency. More...
 
ColorConverterm_Converter
 A pointer to the currently used converter. More...
 
std::string m_ErrorMessage
 field for error message More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PylonColorConverter()

icl::io::pylon::PylonColorConverter::PylonColorConverter ( )

Constructor.

◆ ~PylonColorConverter()

icl::io::pylon::PylonColorConverter::~PylonColorConverter ( )

Destructor.

Member Function Documentation

◆ convert()

icl::core::ImgBase* icl::io::pylon::PylonColorConverter::convert ( const void *  imgBuffer,
ConvBuffers b 
)

Converts pImageBuffer into an internal ImageBase.

Returns
a pointer to the converted image.

◆ freeAll()

void icl::io::pylon::PylonColorConverter::freeAll ( )
private

used to free all allocated resources

◆ getInfo()

void icl::io::pylon::PylonColorConverter::getInfo ( )
private

used to get all needed information about the image to convert

◆ initConversion()

void icl::io::pylon::PylonColorConverter::initConversion ( )
private

frees allocated memory and reinitializes thr color conversion.

◆ resetConversion()

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.

◆ setConversionMono()

void icl::io::pylon::PylonColorConverter::setConversionMono ( )
private

makes all settings for the conv. of grayscale images.

◆ setConversionRGB()

void icl::io::pylon::PylonColorConverter::setConversionRGB ( )
private

makes all settings for the conv. of color images.

◆ setConversionRGBPacked()

void icl::io::pylon::PylonColorConverter::setConversionRGBPacked ( )
private

makes all settings for the conv. PackedRGB images.

Member Data Documentation

◆ m_Converter

ColorConverter* icl::io::pylon::PylonColorConverter::m_Converter
private

A pointer to the currently used converter.

◆ m_ErrorMessage

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.

◆ m_Mutex

utils::Mutex icl::io::pylon::PylonColorConverter::m_Mutex
private

A mutex lock for concurrency.


The documentation for this class was generated from the following file: