|
| 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 |
|
template<typename SourcePixel, typename DestPixel, typename CalcPixel = DestPixel>
class iimg::TPixelConversion< SourcePixel, DestPixel, CalcPixel >
A generic pixel conversion.
- Template Parameters
-
SourcePixel | Type of the source pixel. |
DestPixel | Type of the destination pixel. |
DestPixel | Type of the destination pixel. |
Definition at line 26 of file TPixelConversion.h.
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.
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.