File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 1.4.2
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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: