DGtal  0.9.3beta
Public Types | Public Member Functions
DGtal::functors::ColorRGBEncoder< TValue > Struct Template Reference

#include <DGtal/io/colormaps/BasicColorToScalarFunctors.h>

Public Types

typedef TValue Value
 

Public Member Functions

Value operator() (const Color &aCol) const
 

Detailed Description

template<typename TValue>
struct DGtal::functors::ColorRGBEncoder< TValue >

Basic color to scalar functor which returns the code of the RGB color (DGtal_uint32 casted into TValue) .

Definition at line 113 of file BasicColorToScalarFunctors.h.

Member Typedef Documentation

template<typename TValue >
typedef TValue DGtal::functors::ColorRGBEncoder< TValue >::Value

Definition at line 115 of file BasicColorToScalarFunctors.h.

Member Function Documentation

template<typename TValue >
Value DGtal::functors::ColorRGBEncoder< TValue >::operator() ( const Color aCol) const
inline

Definition at line 118 of file BasicColorToScalarFunctors.h.

References DGtal::Color::getRGB().

119  {
120  return static_cast<Value> (aCol.getRGB());
121  }

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