#include <la.h>
T | The datatype of each component |
Definition at line 38 of file la.h.
Public Member Functions | |
La () | |
La (T l, T a) | |
La< T > & | operator= (const La< T > &c) |
template<typename T2> | |
La< T > & | operator= (const La< T2 > &c) |
bool | operator== (const La< T > &c) const |
bool | operator!= (const La< T > &c) const |
Public Attributes | |
T | luminance |
T | alpha |
Related Functions | |
(Note that these are not member functions.) | |
template<typename T> | |
std::ostream & | operator<< (std::ostream &os, const La< T > &x) |
std::ostream & | operator<< (std::ostream &os, const La< unsigned char > &x) |
Assignment operator.
c | The colour to copy from |
Definition at line 53 of file la.h.
References CVD::La< T >::alpha, and CVD::La< T >::luminance.
La<T>& CVD::La< T >::operator= | ( | const La< T2 > & | c | ) | [inline] |
Assignment operator between two different storage types, using the standard casts as necessary.
c | The colour to copy from |
Definition at line 59 of file la.h.
References CVD::La< T >::alpha, and CVD::La< T >::luminance.
Logical equals operator.
Returns true if each component is the same.
c | La to compare with |
Definition at line 67 of file la.h.
References CVD::La< T >::alpha, and CVD::La< T >::luminance.
Logical not-equals operator.
Returns true unless each component is the same.
c | La to compare with |
Definition at line 72 of file la.h.
References CVD::La< T >::alpha, and CVD::La< T >::luminance.
std::ostream & operator<< | ( | std::ostream & | os, | |
const La< T > & | x | |||
) | [related] |
std::ostream & operator<< | ( | std::ostream & | os, | |
const La< unsigned char > & | x | |||
) | [related] |
The luminance component.
Definition at line 48 of file la.h.
Referenced by CVD::La< T >::operator!=(), CVD::La< T >::operator=(), and CVD::La< T >::operator==().
The alpha component.
Definition at line 49 of file la.h.
Referenced by CVD::La< T >::operator!=(), CVD::La< T >::operator=(), and CVD::La< T >::operator==().