PixH2SV1< T > Class Template Reference

This is the H2SV1 pixel class. More...

#include <Image/PixelsTypes.H>

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

List of all members.

Public Member Functions

 PixH2SV1 (const T val)
template<class T2 >
 PixH2SV1 (const PixRGB< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixHSV< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixYIQ< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixHSL< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixH2SV1< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixH2SV2< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixH2SV3< T2 > &A)
template<class T2 >
 PixH2SV1 (const PixHyper< T2, 4 > &A)
 PixH2SV1 (const PixH2SV1< T > &pix)
 construct pixel from another. Defined here for tech reasons
 PixH2SV1 (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 >
 PixH2SV1 (const T2 H1val, const T3 H2val, const T4 Sval, const T5 Vval)
 Construct from given values, clamping & converting as needed.
void getH2SV1 (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 = PixTypeH2SV1
static const size_t myDim = 4

Detailed Description

template<class T>
class PixH2SV1< T >

This is the H2SV1 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 H2SV1 pixel class from Pixels

Definition at line 1060 of file PixelsTypes.H.


Constructor & Destructor Documentation

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

construct pixel from another. Defined here for tech reasons

Definition at line 3018 of file PixelsTypes.H.

template<class T >
PixH2SV1< T >::PixH2SV1 ( 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 3034 of file PixelsTypes.H.

template<class T >
template<class T2 , class T3 , class T4 , class T5 >
PixH2SV1< T >::PixH2SV1 ( const T2  H1val,
const T3  H2val,
const T4  Sval,
const T5  Vval 
) [inline]

Construct from given values, clamping & converting as needed.

Definition at line 3042 of file PixelsTypes.H.


Member Function Documentation

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

Access H1 channel.

Definition at line 3052 of file PixelsTypes.H.

Referenced by getRGBY().

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

Access H2 channel.

Definition at line 3059 of file PixelsTypes.H.

Referenced by getRGBY().

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

Access S channel.

Definition at line 3066 of file PixelsTypes.H.

Referenced by getRGBY().

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

Set H1 channel value, clamping & converting as necessary.

Definition at line 3080 of file PixelsTypes.H.

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

Set H2 channel value, clamping & converting as necessary.

Definition at line 3086 of file PixelsTypes.H.

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

Set S channel value, clamping & converting as necessary.

Definition at line 3092 of file PixelsTypes.H.

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

Set V channel value, clamping & converting as necessary.

Definition at line 3098 of file PixelsTypes.H.

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

Access V channel.

Definition at line 3073 of file PixelsTypes.H.

Referenced by getRGBY().


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