31#if defined(GrayscaleColorMap_RECURSES)
32#error Recursive header files inclusion detected in GrayscaleColorMap.h
35#define GrayscaleColorMap_RECURSES
37#if !defined GrayscaleColorMap_h
39#define GrayscaleColorMap_h
44#include "DGtal/base/Common.h"
45#include "Board/Board.h"
46#include "DGtal/io/Color.h"
51#define _HAS_MSVC_MAX_ true
55#define _HAS_MSVC_MIN_ true
92 template <
typename PValue>
110 const PValue &
max );
160 const PValue &
min()
const;
167 const PValue &
max()
const;
183 const PValue & value );
215 template <
typename PValue>
224#include "DGtal/io/colormaps/GrayscaleColorMap.ih"
231#undef GrayscaleColorMap_RECURSES
Structure representing an RGB triple with alpha component.
Aim: This class template may be used to (linearly) convert scalar values in a given range into gray l...
void selfDisplay(std::ostream &out) const
const PValue & min() const
static Color getColor(const PValue &min, const PValue &max, const PValue &value)
Color operator()(const PValue &value) const
GrayscaleColorMap(const GrayscaleColorMap &other)
GrayscaleColorMap & operator=(const GrayscaleColorMap &other)
const PValue & max() const
GrayscaleColorMap(const PValue &min, const PValue &max)
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)