45 template <
typename T2>
49 alpha =
static_cast<T
>(c.
alpha);
73 std::ostream& operator<<(std::ostream& os, const La<T>& x)
75 return os <<
"(" << x.luminance <<
"," << x.alpha <<
")";
82 inline std::ostream& operator<<(std::ostream& os, const La<unsigned char>& x)
84 return os <<
"(" <<
static_cast<unsigned int>(x.luminance) <<
"," 85 << static_cast<unsigned int>(x.alpha) <<
")";
La< T > & operator=(const La< T > &c)
Assignment operator.
Definition: la.h:36
La()
Default constructor. Does nothing.
Definition: la.h:21
All classes and functions are within the CVD namespace.
Definition: argb.h:6
A colour consisting of luminance and alpha components.
Definition: la.h:17
T luminance
The luminance component.
Definition: la.h:31
bool operator!=(const La< T > &c) const
Logical not-equals operator.
Definition: la.h:62
La(T l, T a)
Constructs a colour as specified.
Definition: la.h:25
bool operator==(const La< T > &c) const
Logical equals operator.
Definition: la.h:55
La< T > & operator=(const La< T2 > &c)
Assignment operator between two different storage types, using the standard casts as necessary...
Definition: la.h:46
T alpha
The alpha component.
Definition: la.h:32