31#if defined(ColorToScalarFunctors_RECURSES)
32#error Recursive header files inclusion detected in ColorToScalarFunctors.h
35#define ColorToScalarFunctors_RECURSES
37#if !defined ColorToScalarFunctors_h
39#define ColorToScalarFunctors_h
44#include "DGtal/base/Common.h"
45#include "DGtal/io/Color.h"
104 return static_cast<unsigned char>( ((int)aCol.
green() + (int)aCol.
blue() + (int)aCol.
red()) / 3);
112 template<
typename TValue>
132#undef ColorToScalarFunctors_RECURSES
Structure representing an RGB triple with alpha component.
DGtal::uint32_t getRGB() const
void green(const unsigned char aGreenValue)
void red(const unsigned char aRedValue)
void blue(const unsigned char aBlueValue)
DGtal is the top-level namespace which contains all DGtal functions and types.
unsigned char operator()(const Color &aCol) const
Value operator()(const Color &aCol) const
unsigned char operator()(const Color &aCol) const
unsigned char operator()(const Color &aCol) const
unsigned char operator()(const Color &aCol) const