SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Public Member Functions | Public Attributes | Related Functions | List of all members
CVD::Rgb< T > Class Template Reference

#include <rgb.h>

Public Member Functions

 Rgb ()
 Default constructor. Does nothing. More...
 
 Rgb (T r, T g, T b)
 
template<class S >
 Rgb (const Rgb< S > &rgb)
 
Rgb< T > & operator= (const Rgb< T > &c)
 
bool operator== (const Rgb< T > &c) const
 
bool operator!= (const Rgb< T > &c) const
 
template<class T2 >
Rgb< T > & operator= (const Rgb< T2 > &c)
 

Public Attributes

red
 The red component. More...
 
green
 The green component. More...
 
blue
 The blue component. More...
 

Related Functions

(Note that these are not member functions.)

template<class T >
std::ostream & operator<< (std::ostream &os, const Rgb< T > &x)
 
std::ostream & operator<< (std::ostream &os, const Rgb< char > &x)
 
std::ostream & operator<< (std::ostream &os, const Rgb< byte > &x)
 

Detailed Description

template<class T>
class CVD::Rgb< T >

A colour consisting of red, green and blue components. Often used to store 24-bit colour information, i.e. CVD::Rgb<CVD::byte>

Parameters
TThe datatype of each component

Definition at line 45 of file rgb.h.

Constructor & Destructor Documentation

template<class T>
CVD::Rgb< T >::Rgb ( )
inline

Default constructor. Does nothing.

Definition at line 49 of file rgb.h.

template<class T>
CVD::Rgb< T >::Rgb ( r,
g,
b 
)
inline

Constructs a colour as specified

Parameters
rThe red component
gThe green component
bThe blue component

Definition at line 54 of file rgb.h.

template<class T>
template<class S >
CVD::Rgb< T >::Rgb ( const Rgb< S > &  rgb)
inlineexplicit

Definition at line 55 of file rgb.h.

Member Function Documentation

template<class T>
bool CVD::Rgb< T >::operator!= ( const Rgb< T > &  c) const
inline

Logical not-equals operator. Returns true unless each component is the same.

Parameters
cRgb to compare with

Definition at line 73 of file rgb.h.

template<class T>
Rgb<T>& CVD::Rgb< T >::operator= ( const Rgb< T > &  c)
inline

Assignment operator

Parameters
cThe colour to copy from

Definition at line 63 of file rgb.h.

template<class T>
template<class T2 >
Rgb<T>& CVD::Rgb< T >::operator= ( const Rgb< T2 > &  c)
inline

Assignment operator between two different storage types, using the standard casts as necessary

Parameters
cThe colour to copy from

Definition at line 79 of file rgb.h.

template<class T>
bool CVD::Rgb< T >::operator== ( const Rgb< T > &  c) const
inline

Logical equals operator. Returns true if each component is the same.

Parameters
cRgb to compare with

Definition at line 68 of file rgb.h.

Friends And Related Function Documentation

template<class T >
std::ostream & operator<< ( std::ostream &  os,
const Rgb< T > &  x 
)
related

Write the colour to a stream in the format "(red,green,blue)"

Parameters
osThe stream
xThe colour object

Definition at line 89 of file rgb.h.

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Rgb< char > &  x 
)
related

Read a colour from a stream, interpreting three numbers as chars

Parameters
osThe stream
xThe colour object

Definition at line 99 of file rgb.h.

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Rgb< byte > &  x 
)
related

Read a colour from a stream, interpreting three numbers as bytes

Parameters
osThe stream
xThe colour object

Definition at line 110 of file rgb.h.

Member Data Documentation

template<class T>
T CVD::Rgb< T >::blue

The blue component.

Definition at line 59 of file rgb.h.

template<class T>
T CVD::Rgb< T >::green

The green component.

Definition at line 58 of file rgb.h.

template<class T>
T CVD::Rgb< T >::red

The red component.

Definition at line 57 of file rgb.h.


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