PixHSL< T > Class Template Reference

This is the basic HSL pixel class. More...

#include <Image/PixelsTypes.H>

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

List of all members.

Public Member Functions

 PixHSL (const T val)
template<class T2 >
 PixHSL (const PixRGB< T2 > &A)
template<class T2 >
 PixHSL (const PixHSV< T2 > &A)
template<class T2 >
 PixHSL (const PixYIQ< T2 > &A)
template<class T2 >
 PixHSL (const PixHSL< T2 > &A)
template<class T2 >
 PixHSL (const PixH2SV1< T2 > &A)
template<class T2 >
 PixHSL (const PixH2SV2< T2 > &A)
template<class T2 >
 PixHSL (const PixH2SV3< T2 > &A)
template<class T2 >
 PixHSL (const PixHyper< T2, 3 > &A)
 PixHSL (const PixHSL< T > &pix)
 construct pixel from another. Defined here for tech reasons
 PixHSL (const T Hval, const T Sval, const T Lval)
 Construct an RGB pixel with given values red, green, blue.
template<class T2 , class T3 , class T4 >
 PixHSL (const T2 Hval, const T3 Sval, const T4 Lval)
 Construct from given values, clamping & convertPixing as needed.
void getHSL (T &h, T &s, T &l) const
H () const
 Access hue channel.
S () const
 Access sat channel.
L () const
 Access val channel.
template<class T2 >
void setH (const T2 H)
 Set hue channel value, clamping & converting as necessary.
template<class T2 >
void setS (const T2 S)
 Set sat channel value, clamping & converting as necessary.
template<class T2 >
void setL (const T2 L)
 Set val channel value, clamping & converting as necessary.

Static Public Attributes

static const enum PixType pType = PixTypeHSL
static const size_t myDim = 3

Detailed Description

template<class T>
class PixHSL< T >

This is the basic HSL pixel class.

Derived HSL pixel class from Pixels

Definition at line 883 of file PixelsTypes.H.


Constructor & Destructor Documentation

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

construct pixel from another. Defined here for tech reasons

Definition at line 2538 of file PixelsTypes.H.

template<class T >
PixHSL< T >::PixHSL ( const T  Hval,
const T  Sval,
const T  Lval 
) [inline]

Construct an RGB pixel with given values red, green, blue.

Definition at line 2553 of file PixelsTypes.H.

template<class T >
template<class T2 , class T3 , class T4 >
PixHSL< T >::PixHSL ( const T2  Hval,
const T3  Sval,
const T4  Lval 
) [inline]

Construct from given values, clamping & convertPixing as needed.

Definition at line 2560 of file PixelsTypes.H.


Member Function Documentation

template<class T >
T PixHSL< T >::H (  )  const [inline]

Access hue channel.

Definition at line 2569 of file PixelsTypes.H.

template<class T >
T PixHSL< T >::L (  )  const [inline]

Access val channel.

Definition at line 2583 of file PixelsTypes.H.

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

Access sat channel.

Definition at line 2576 of file PixelsTypes.H.

template<class T >
template<class T2 >
void PixHSL< T >::setH ( const T2  H  )  [inline]

Set hue channel value, clamping & converting as necessary.

Definition at line 2590 of file PixelsTypes.H.

template<class T >
template<class T2 >
void PixHSL< T >::setL ( const T2  L  )  [inline]

Set val channel value, clamping & converting as necessary.

Definition at line 2604 of file PixelsTypes.H.

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

Set sat channel value, clamping & converting as necessary.

Definition at line 2597 of file PixelsTypes.H.


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