PixH2SV2< T > Class Template Reference

This is the H2SV2 pixel class. More...

#include <Image/PixelsTypes.H>

Inheritance diagram for PixH2SV2< T >:
Inheritance graph
[legend]
Collaboration diagram for PixH2SV2< T >:
Collaboration graph
[legend]

List of all members.

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
H1 () const
 Access H1 channel.
H2 () const
 Access H2 channel.
S () const
 Access S channel.
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

Detailed Description

template<class T>
class PixH2SV2< T >

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.


Constructor & Destructor Documentation

template<class T>
PixH2SV2< T >::PixH2SV2 ( const PixH2SV2< T > &  pix  )  [inline]

construct pixel from another. Defined here for tech reasons

Definition at line 3237 of file PixelsTypes.H.

template<class T>
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.

template<class T >
template<class T2 , class T3 , class T4 , class T5 >
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.


Member Function Documentation

template<class T >
T PixH2SV2< T >::H1 (  )  const [inline]

Access H1 channel.

Definition at line 3268 of file PixelsTypes.H.

Referenced by getRGBY().

template<class T >
T PixH2SV2< T >::H2 (  )  const [inline]

Access H2 channel.

Definition at line 3275 of file PixelsTypes.H.

Referenced by getRGBY().

template<class T >
T PixH2SV2< T >::S (  )  const [inline]

Access S channel.

Definition at line 3282 of file PixelsTypes.H.

Referenced by getRGBY().

template<class T >
template<class T2 >
void PixH2SV2< T >::setH1 ( const T2  H1  )  [inline]

Set H1 channel value, clamping & converting as necessary.

Definition at line 3296 of file PixelsTypes.H.

template<class T >
template<class T2 >
void PixH2SV2< T >::setH2 ( const T2  H2  )  [inline]

Set H2 channel value, clamping & converting as necessary.

Definition at line 3302 of file PixelsTypes.H.

template<class T >
template<class T2 >
void PixH2SV2< T >::setS ( const T2  S  )  [inline]

Set S channel value, clamping & converting as necessary.

Definition at line 3308 of file PixelsTypes.H.

template<class T >
template<class T2 >
void PixH2SV2< T >::setV ( const T2  V  )  [inline]

Set V channel value, clamping & converting as necessary.

Definition at line 3314 of file PixelsTypes.H.

template<class T >
T PixH2SV2< T >::V (  )  const [inline]

Access V channel.

Definition at line 3289 of file PixelsTypes.H.

Referenced by getRGBY().


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:23:49 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3