BayerTuple template class.
This is a Tuple specialization containing 4 elements corresponding to the Bayer color channels: R, G_EVEN, G_ODD, and B. Values can be accessed using the named methods or subscript indexing using the Argus::BayerChannel enum.
Public Member Functions | |
BayerTuple () | |
BayerTuple (const Tuple< BAYER_CHANNEL_COUNT, T > &other) | |
BayerTuple (T init) | |
BayerTuple (T _r, T _gEven, T _gOdd, T _b) | |
T & | r () |
const T & | r () const |
T & | gEven () |
const T & | gEven () const |
T & | gOdd () |
const T & | gOdd () const |
T & | b () |
const T & | b () const |
bool | operator== (const Tuple< N, T > &rhs) const |
Returns true when every element in the two tuples are identical. More... | |
bool | operator!= (const Tuple< N, T > &rhs) const |
Returns true if there are any differences between the two tuples. More... | |
Tuple< N, T > & | operator+= (const Tuple< N, T > &rhs) |
Adds every element of another tuple to the elements of this tuple. More... | |
Tuple< N, T > & | operator-= (const Tuple< N, T > &rhs) |
Subtracts every element of another tuple from the elements of this tuple. More... | |
Tuple< N, T > & | operator*= (const T &rhs) |
Multiplies every element in the tuple by a single value. More... | |
Tuple< N, T > & | operator/= (const T &rhs) |
Divides every element in the tuple by a single value. More... | |
const Tuple< N, T > | operator+ (const Tuple< N, T > &rhs) const |
Returns the result of adding another tuple to this tuple. More... | |
const Tuple< N, T > | operator- (const Tuple< N, T > &rhs) const |
Returns the result of subtracting another tuple from this tuple. More... | |
const Tuple< N, T > | operator* (const T &rhs) const |
Returns the result of multiplying this tuple by a single value. More... | |
const Tuple< N, T > | operator/ (const T &rhs) const |
Returns the result of dividing this tuple by a single value. More... | |
T & | operator[] (unsigned int i) |
const T & | operator[] (unsigned int i) const |
Static Public Member Functions | |
static unsigned int | tupleSize () |
Returns the number of elements in the tuple. More... | |
Protected Attributes | |
T | m_data [N] |
|
inline |
|
inline |
|
inline |
Definition at line 600 of file Types.h.
References Argus::BayerTuple< T >::b(), Argus::BayerTuple< T >::gEven(), Argus::BayerTuple< T >::gOdd(), and Argus::BayerTuple< T >::r().
|
inline |
Definition at line 605 of file Types.h.
References Argus::BayerTuple< T >::b(), Argus::BayerTuple< T >::gEven(), Argus::BayerTuple< T >::gOdd(), and Argus::BayerTuple< T >::r().
|
inline |
Definition at line 619 of file Types.h.
References Argus::BAYER_CHANNEL_B.
Referenced by Argus::BayerTuple< T >::BayerTuple().
|
inline |
Definition at line 620 of file Types.h.
References Argus::BAYER_CHANNEL_B.
|
inline |
Definition at line 615 of file Types.h.
References Argus::BAYER_CHANNEL_G_EVEN.
Referenced by Argus::BayerTuple< T >::BayerTuple().
|
inline |
Definition at line 616 of file Types.h.
References Argus::BAYER_CHANNEL_G_EVEN.
|
inline |
Definition at line 617 of file Types.h.
References Argus::BAYER_CHANNEL_G_ODD.
Referenced by Argus::BayerTuple< T >::BayerTuple().
|
inline |
Definition at line 618 of file Types.h.
References Argus::BAYER_CHANNEL_G_ODD.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 613 of file Types.h.
References Argus::BAYER_CHANNEL_R.
Referenced by Argus::BayerTuple< T >::BayerTuple().
|
inline |
Definition at line 614 of file Types.h.
References Argus::BAYER_CHANNEL_R.
|
inlinestaticinherited |
|
protectedinherited |