31 #if defined(GrayscaleColorMap_RECURSES)
32 #error Recursive header files inclusion detected in GrayscaleColorMap.h
33 #else // defined(GrayscaleColorMap_RECURSES)
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"
229 #endif // !defined GrayscaleColorMap_h
231 #undef GrayscaleColorMap_RECURSES
232 #endif // else defined(GrayscaleColorMap_RECURSES)
Aim: This class template may be used to (linearly) convert scalar values in a given range into gray l...
Color operator()(const PValue &value) const
Structure representing an RGB triple with alpha component.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
DGtal is the top-level namespace which contains all DGtal functions and types.
static Color getColor(const PValue &min, const PValue &max, const PValue &value)
const PValue & min() const
GrayscaleColorMap & operator=(const GrayscaleColorMap &other)
void selfDisplay(std::ostream &out) const
const PValue & max() const