DGtal  1.3.beta
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

◆ Value

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

Definition at line 115 of file BasicColorToScalarFunctors.h.

Member Function Documentation

◆ operator()()

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

Definition at line 118 of file BasicColorToScalarFunctors.h.

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

References DGtal::Color::getRGB().


The documentation for this struct was generated from the following file:
Value
double Value
Definition: testSimpleRandomAccessRangeFromPoint.cpp:38