This is the H2SV3 pixel class. More...
#include <Image/PixelsTypes.H>
Public Member Functions | |
PixH2SV3 (const T val) | |
template<class T2 > | |
PixH2SV3 (const PixYIQ< T2 > &A) | |
template<class T2 > | |
PixH2SV3 (const PixH2SV1< T2 > &A) | |
template<class T2 > | |
PixH2SV3 (const PixH2SV2< T2 > &A) | |
template<class T2 > | |
PixH2SV3 (const PixH2SV3< T2 > &A) | |
template<class T2 > | |
PixH2SV3 (const PixHyper< T2, 4 > &A) | |
PixH2SV3 (const PixH2SV3< T > &pix) | |
construct pixel from another. Defined here for tech reasons | |
PixH2SV3 (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 > | |
PixH2SV3 (const T2 H1val, const T3 H2val, const T4 Sval, const T5 Vval) | |
Construct from given values, clamping & converting as needed. | |
void | getH2SV3 (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 = PixTypeH2SV3 |
static const size_t | myDim = 4 |
This is the H2SV3 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 H2SV3 pixel class from Pixels
Definition at line 1201 of file PixelsTypes.H.
construct pixel from another. Defined here for tech reasons
Definition at line 3398 of file PixelsTypes.H.
PixH2SV3< T >::PixH2SV3 | ( | 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 3412 of file PixelsTypes.H.
PixH2SV3< T >::PixH2SV3 | ( | const T2 | H1val, | |
const T3 | H2val, | |||
const T4 | Sval, | |||
const T5 | Vval | |||
) | [inline] |
Construct from given values, clamping & converting as needed.
Definition at line 3419 of file PixelsTypes.H.
T PixH2SV3< T >::H1 | ( | ) | const [inline] |
Access H1 channel.
Definition at line 3429 of file PixelsTypes.H.
T PixH2SV3< T >::H2 | ( | ) | const [inline] |
Access H2 channel.
Definition at line 3436 of file PixelsTypes.H.
T PixH2SV3< T >::S | ( | ) | const [inline] |
Access S channel.
Definition at line 3443 of file PixelsTypes.H.
Set H1 channel value, clamping & converting as necessary.
Definition at line 3457 of file PixelsTypes.H.
Set H2 channel value, clamping & converting as necessary.
Definition at line 3463 of file PixelsTypes.H.
Set S channel value, clamping & converting as necessary.
Definition at line 3469 of file PixelsTypes.H.
Set V channel value, clamping & converting as necessary.
Definition at line 3475 of file PixelsTypes.H.
T PixH2SV3< T >::V | ( | ) | const [inline] |
Access V channel.
Definition at line 3450 of file PixelsTypes.H.