DGtal  1.4.2
DGtal::functors::RedChannel Struct Reference

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

Public Member Functions

unsigned char operator() (const Color &aCol) const
 

Detailed Description

Basic color to scalar functor which returns the red channel.

Definition at line 57 of file BasicColorToScalarFunctors.h.

Member Function Documentation

◆ operator()()

unsigned char DGtal::functors::RedChannel::operator() ( const Color aCol) const
inline

Definition at line 60 of file BasicColorToScalarFunctors.h.

61  {
62  return aCol.red();
63  }

References DGtal::Color::red().


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