ICF 3.0.5.47
Technical documentation of ICF Libraries
iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel > Class Template Reference

A generic pixel conversion. More...

#include <TPixelConversion.h>

Collaboration diagram for iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >:

Public Types

typedef SourcePixel SourcePixelType
 
typedef DestPixel DestPixelType
 
typedef CalcPixel CalcPixelType
 

Public Member Functions

 TPixelConversion ()
 Default constructor.
 
DestPixel operator() (const SourcePixel &pixel) const
 Casting operator.
 
CalcPixel GetCalc (const SourcePixel &pixel) const
 
DestPixel GetDest (const CalcPixel &pixel) const
 
double GetWeight (const CalcPixel &pixel) const
 Get weight of pixel value.
 
double GetIntensity (const CalcPixel &pixel) const
 Get intensity of pixel value.
 
 TPixelConversion ()
 
float operator() (const quint8 &pixel) const
 
float GetCalc (const quint8 &pixel) const
 
quint8 operator() (const float &pixel) const
 
quint8 GetDest (const float &pixel) const
 

Public Attributes

double whiteIntensity
 

Detailed Description

template<typename SourcePixel, typename DestPixel, typename CalcPixel = DestPixel>
class iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >

A generic pixel conversion.

Template Parameters
SourcePixelType of the source pixel.
DestPixelType of the destination pixel.
DestPixelType of the destination pixel.

Definition at line 26 of file TPixelConversion.h.

Member Typedef Documentation

◆ CalcPixelType

template<typename SourcePixel , typename DestPixel , typename CalcPixel = DestPixel>
CalcPixel iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::CalcPixelType

Definition at line 31 of file TPixelConversion.h.

◆ DestPixelType

template<typename SourcePixel , typename DestPixel , typename CalcPixel = DestPixel>
DestPixel iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::DestPixelType

Definition at line 30 of file TPixelConversion.h.

◆ SourcePixelType

template<typename SourcePixel , typename DestPixel , typename CalcPixel = DestPixel>
SourcePixel iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::SourcePixelType

Definition at line 29 of file TPixelConversion.h.

Constructor & Destructor Documentation

◆ TPixelConversion() [1/2]

template<typename SourcePixel , typename DestPixel , typename CalcPixel >
iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::TPixelConversion ( )
inline

Default constructor.

Definition at line 71 of file TPixelConversion.h.

◆ TPixelConversion() [2/2]

iimg::TPixelConversion< quint8, quint8, quint8 >::TPixelConversion ( )
inline

Definition at line 113 of file TPixelConversion.h.

Member Function Documentation

◆ GetCalc() [1/2]

float iimg::TPixelConversion< quint8, float, float >::GetCalc ( const quint8 & pixel) const
inline

Definition at line 127 of file TPixelConversion.h.

◆ GetCalc() [2/2]

template<typename SourcePixel , typename DestPixel , typename CalcPixel >
CalcPixel iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::GetCalc ( const SourcePixel & pixel) const
inline

Definition at line 85 of file TPixelConversion.h.

◆ GetDest() [1/2]

template<typename SourcePixel , typename DestPixel , typename CalcPixel >
DestPixel iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::GetDest ( const CalcPixel & pixel) const
inline

Definition at line 92 of file TPixelConversion.h.

◆ GetDest() [2/2]

quint8 iimg::TPixelConversion< float, quint8, float >::GetDest ( const float & pixel) const
inline

Definition at line 141 of file TPixelConversion.h.

◆ GetIntensity()

template<typename SourcePixel , typename DestPixel , typename CalcPixel >
double iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::GetIntensity ( const CalcPixel & pixel) const
inline

Get intensity of pixel value.

This value is used for grayscale algorithms to operate with pixels with additional than intensity information.

Definition at line 106 of file TPixelConversion.h.

◆ GetWeight()

template<typename SourcePixel , typename DestPixel , typename CalcPixel >
double iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::GetWeight ( const CalcPixel & pixel) const
inline

Get weight of pixel value.

Weight is value, typically between 0 and 1, describing importance of pixel. For normal pixels it is always 1. For alpha-channeled pixels or weight pixels it can differ. Values above 1 and negative are also possible for some algorithmical reasons.

Definition at line 99 of file TPixelConversion.h.

◆ operator()() [1/3]

quint8 iimg::TPixelConversion< float, quint8, float >::operator() ( const float & pixel) const
inline

Definition at line 134 of file TPixelConversion.h.

◆ operator()() [2/3]

float iimg::TPixelConversion< quint8, float, float >::operator() ( const quint8 & pixel) const
inline

Definition at line 120 of file TPixelConversion.h.

◆ operator()() [3/3]

template<typename SourcePixel , typename DestPixel , typename CalcPixel >
DestPixel iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::operator() ( const SourcePixel & pixel) const
inline

Casting operator.

Returns
The result of the pixel conversion.

Definition at line 78 of file TPixelConversion.h.

Member Data Documentation

◆ whiteIntensity

template<typename SourcePixel , typename DestPixel , typename CalcPixel = DestPixel>
double iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >::whiteIntensity

Definition at line 64 of file TPixelConversion.h.


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

© Witold Gantzke and Kirill Lepskiy