Jetson Linux API Reference

32.7.5 Release
Argus::BayerTuple< T > Class Template Reference

Detailed Description

template<typename T>
class Argus::BayerTuple< T >

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.

Definition at line 594 of file Types.h.

Inheritance diagram for Argus::BayerTuple< T >:
Collaboration diagram for Argus::BayerTuple< T >:

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

m_data [N]
 

Constructor & Destructor Documentation

◆ BayerTuple() [1/4]

template<typename T >
Argus::BayerTuple< T >::BayerTuple ( )
inline

Definition at line 597 of file Types.h.

◆ BayerTuple() [2/4]

template<typename T >
Argus::BayerTuple< T >::BayerTuple ( const Tuple< BAYER_CHANNEL_COUNT, T > &  other)
inline

Definition at line 598 of file Types.h.

◆ BayerTuple() [3/4]

template<typename T >
Argus::BayerTuple< T >::BayerTuple ( init)
inline

◆ BayerTuple() [4/4]

template<typename T >
Argus::BayerTuple< T >::BayerTuple ( _r,
_gEven,
_gOdd,
_b 
)
inline

Member Function Documentation

◆ b() [1/2]

template<typename T >
T& Argus::BayerTuple< T >::b ( )
inline

Definition at line 619 of file Types.h.

References Argus::BAYER_CHANNEL_B.

Referenced by Argus::BayerTuple< T >::BayerTuple().

◆ b() [2/2]

template<typename T >
const T& Argus::BayerTuple< T >::b ( ) const
inline

Definition at line 620 of file Types.h.

References Argus::BAYER_CHANNEL_B.

◆ gEven() [1/2]

template<typename T >
T& Argus::BayerTuple< T >::gEven ( )
inline

Definition at line 615 of file Types.h.

References Argus::BAYER_CHANNEL_G_EVEN.

Referenced by Argus::BayerTuple< T >::BayerTuple().

◆ gEven() [2/2]

template<typename T >
const T& Argus::BayerTuple< T >::gEven ( ) const
inline

Definition at line 616 of file Types.h.

References Argus::BAYER_CHANNEL_G_EVEN.

◆ gOdd() [1/2]

template<typename T >
T& Argus::BayerTuple< T >::gOdd ( )
inline

Definition at line 617 of file Types.h.

References Argus::BAYER_CHANNEL_G_ODD.

Referenced by Argus::BayerTuple< T >::BayerTuple().

◆ gOdd() [2/2]

template<typename T >
const T& Argus::BayerTuple< T >::gOdd ( ) const
inline

Definition at line 618 of file Types.h.

References Argus::BAYER_CHANNEL_G_ODD.

◆ operator!=()

bool Argus::Tuple< N, T >::operator!= ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns true if there are any differences between the two tuples.

Definition at line 517 of file Types.h.

◆ operator*()

const Tuple<N, T> Argus::Tuple< N, T >::operator* ( const T &  rhs) const
inlineinherited

Returns the result of multiplying this tuple by a single value.

Definition at line 567 of file Types.h.

◆ operator*=()

Tuple<N, T>& Argus::Tuple< N, T >::operator*= ( const T &  rhs)
inlineinherited

Multiplies every element in the tuple by a single value.

Definition at line 539 of file Types.h.

◆ operator+()

const Tuple<N, T> Argus::Tuple< N, T >::operator+ ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns the result of adding another tuple to this tuple.

Definition at line 555 of file Types.h.

◆ operator+=()

Tuple<N, T>& Argus::Tuple< N, T >::operator+= ( const Tuple< N, T > &  rhs)
inlineinherited

Adds every element of another tuple to the elements of this tuple.

Definition at line 523 of file Types.h.

◆ operator-()

const Tuple<N, T> Argus::Tuple< N, T >::operator- ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns the result of subtracting another tuple from this tuple.

Definition at line 561 of file Types.h.

◆ operator-=()

Tuple<N, T>& Argus::Tuple< N, T >::operator-= ( const Tuple< N, T > &  rhs)
inlineinherited

Subtracts every element of another tuple from the elements of this tuple.

Definition at line 531 of file Types.h.

◆ operator/()

const Tuple<N, T> Argus::Tuple< N, T >::operator/ ( const T &  rhs) const
inlineinherited

Returns the result of dividing this tuple by a single value.

Definition at line 573 of file Types.h.

◆ operator/=()

Tuple<N, T>& Argus::Tuple< N, T >::operator/= ( const T &  rhs)
inlineinherited

Divides every element in the tuple by a single value.

Definition at line 547 of file Types.h.

◆ operator==()

bool Argus::Tuple< N, T >::operator== ( const Tuple< N, T > &  rhs) const
inlineinherited

Returns true when every element in the two tuples are identical.

Definition at line 511 of file Types.h.

◆ operator[]() [1/2]

T& Argus::Tuple< N, T >::operator[] ( unsigned int  i)
inlineinherited

Definition at line 578 of file Types.h.

◆ operator[]() [2/2]

const T& Argus::Tuple< N, T >::operator[] ( unsigned int  i) const
inlineinherited

Definition at line 579 of file Types.h.

◆ r() [1/2]

template<typename T >
T& Argus::BayerTuple< T >::r ( )
inline

Definition at line 613 of file Types.h.

References Argus::BAYER_CHANNEL_R.

Referenced by Argus::BayerTuple< T >::BayerTuple().

◆ r() [2/2]

template<typename T >
const T& Argus::BayerTuple< T >::r ( ) const
inline

Definition at line 614 of file Types.h.

References Argus::BAYER_CHANNEL_R.

◆ tupleSize()

static unsigned int Argus::Tuple< N, T >::tupleSize
inlinestaticinherited

Returns the number of elements in the tuple.

Definition at line 582 of file Types.h.

Field Documentation

◆ m_data

T Argus::Tuple< N, T >::m_data[N]
protectedinherited

Definition at line 585 of file Types.h.


The documentation for this class was generated from the following file: