Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PixLab< T > Class Template Reference

#include <Image/PixelsTypes.H>

Inheritance diagram for PixLab< T >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class PixLab< T >

Derived Lab pixel class from Pixels.

Definition at line 943 of file PixelsTypes.H.

Public Member Functions

 PixLab ()
 ~PixLab ()
 PixLab (const T val)
template<class T2>
 PixLab (const PixRGB< T2 > &A)
template<class T2>
 PixLab (const PixLab< T2 > &A)
template<class T2>
 PixLab (const PixHyper< T2, 3 > &A)
 PixLab (const PixLab< T > &pix)
 construct pixel from another. Defined here for tech reasons
 PixLab (const T Lval, const T Aval, const T Bval)
 Construct an RGB pixel with given values red, green, blue.
template<class T2, class T3, class T4>
 PixLab (const T2 Lval, const T3 Aval, const T4 Bval)
 Construct from given values, clamping & convertPixing as needed.
void getLab (T &l, T &a, T &b) const
L () const
 Access hue channel.
A () const
 Access sat channel.
B () const
 Access val channel.
template<class T2>
void setL (const T2 L)
 Set hue channel value, clamping & converting as necessary.
template<class T2>
void setA (const T2 A)
 Set sat channel value, clamping & converting as necessary.
template<class T2>
void setB (const T2 B)
 Set val channel value, clamping & converting as necessary.

Static Public Attributes

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


Constructor & Destructor Documentation

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

construct pixel from another. Defined here for tech reasons

Definition at line 2676 of file PixelsTypes.H.

template<class T>
PixLab< T >::PixLab const T  Lval,
const T  Aval,
const T  Bval
[inline]
 

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

Definition at line 2691 of file PixelsTypes.H.

References Pixels< T, 3 >::p.

template<class T>
template<class T2, class T3, class T4>
PixLab< T >::PixLab const T2  Lval,
const T3  Aval,
const T4  Bval
[inline]
 

Construct from given values, clamping & convertPixing as needed.

Definition at line 2698 of file PixelsTypes.H.

References Pixels< T, 3 >::p.


Member Function Documentation

template<class T>
T PixLab< T >::A  )  const [inline]
 

Access sat channel.

Definition at line 2714 of file PixelsTypes.H.

References Pixels< T, 3 >::p.

Referenced by PixLab< T >::PixLab().

template<class T>
T PixLab< T >::B  )  const [inline]
 

Access val channel.

Definition at line 2721 of file PixelsTypes.H.

References Pixels< T, 3 >::p.

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

Access hue channel.

Definition at line 2707 of file PixelsTypes.H.

References Pixels< T, 3 >::p.

Referenced by PixLab< T >::PixLab().

template<class T>
template<class T2>
void PixLab< T >::setA const T2  A  )  [inline]
 

Set sat channel value, clamping & converting as necessary.

Definition at line 2735 of file PixelsTypes.H.

References Pixels< T, 3 >::p.

template<class T>
template<class T2>
void PixLab< T >::setB const T2  B  )  [inline]
 

Set val channel value, clamping & converting as necessary.

Definition at line 2742 of file PixelsTypes.H.

References Pixels< T, 3 >::p.

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

Set hue channel value, clamping & converting as necessary.

Definition at line 2728 of file PixelsTypes.H.

References Pixels< T, 3 >::p.


The documentation for this class was generated from the following file:
Generated on Mon Nov 23 15:50:45 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4