This is the H2SV2 pixel class. More...
#include <Image/PixelsTypes.H>
Public Member Functions | |
PixH2SV2 (const T val) | |
template<class T2 > | |
PixH2SV2 (const PixRGB< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixHSV< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixYIQ< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixHSL< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixH2SV1< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixH2SV2< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixH2SV3< T2 > &A) | |
template<class T2 > | |
PixH2SV2 (const PixHyper< T2, 4 > &A) | |
PixH2SV2 (const PixH2SV2< T > &pix) | |
construct pixel from another. Defined here for tech reasons | |
PixH2SV2 (const T H1val, const T H2val, const T Sval, const T Vval) | |
Construct an RGB pixel with given values red, green, blue. | |
template<class T2 , class T3 , class T4 , class T5 > | |
PixH2SV2 (const T2 H1val, const T3 H2val, const T4 Sval, const T5 Vval) | |
Construct from given values, clamping & converting as needed. | |
void | getH2SV2 (T &h1, T &h2, T &s, T &v) const |
T | H1 () const |
Access H1 channel. | |
T | H2 () const |
Access H2 channel. | |
T | S () const |
Access S channel. | |
T | V () const |
Access V channel. | |
template<class T2 > | |
void | setH1 (const T2 H1) |
Set H1 channel value, clamping & converting as necessary. | |
template<class T2 > | |
void | setH2 (const T2 H2) |
Set H2 channel value, clamping & converting as necessary. | |
template<class T2 > | |
void | setS (const T2 S) |
Set S channel value, clamping & converting as necessary. | |
template<class T2 > | |
void | setV (const T2 V) |
Set V channel value, clamping & converting as necessary. | |
Static Public Attributes | |
static const enum PixType | pType = PixTypeH2SV2 |
static const size_t | myDim = 4 |
This is the H2SV2 pixel class.
This is the HSV color space normalized and de-modulized into components H1 H2 S and V. This is used since the modulus nature of hue makes it hard to deal with in many types of computation. PixH2SV1 is a very linear transforamtion. PixH2SV2 is linear but is B/Y R/G opponent in nature PixH2SV3 is as bio as this can get but is less linear Derived H2SV2 pixel class from Pixels
Definition at line 1130 of file PixelsTypes.H.
construct pixel from another. Defined here for tech reasons
Definition at line 3237 of file PixelsTypes.H.
PixH2SV2< T >::PixH2SV2 | ( | const T | H1val, | |
const T | H2val, | |||
const T | Sval, | |||
const T | Vval | |||
) | [inline] |
Construct an RGB pixel with given values red, green, blue.
Definition at line 3251 of file PixelsTypes.H.
PixH2SV2< T >::PixH2SV2 | ( | const T2 | H1val, | |
const T3 | H2val, | |||
const T4 | Sval, | |||
const T5 | Vval | |||
) | [inline] |
Construct from given values, clamping & converting as needed.
Definition at line 3258 of file PixelsTypes.H.
T PixH2SV2< T >::H1 | ( | ) | const [inline] |
T PixH2SV2< T >::H2 | ( | ) | const [inline] |
T PixH2SV2< T >::S | ( | ) | const [inline] |
Set H1 channel value, clamping & converting as necessary.
Definition at line 3296 of file PixelsTypes.H.
Set H2 channel value, clamping & converting as necessary.
Definition at line 3302 of file PixelsTypes.H.
Set S channel value, clamping & converting as necessary.
Definition at line 3308 of file PixelsTypes.H.
Set V channel value, clamping & converting as necessary.
Definition at line 3314 of file PixelsTypes.H.
T PixH2SV2< T >::V | ( | ) | const [inline] |