31 #if defined(QuantifiedColorMap_RECURSES)
32 #error Recursive header files inclusion detected in QuantifiedColorMap.h
33 #else // defined(QuantifiedColorMap_RECURSES)
35 #define QuantifiedColorMap_RECURSES
37 #if !defined QuantifiedColorMap_h
39 #define QuantifiedColorMap_h
46 #include "DGtal/base/Common.h"
47 #include "DGtal/base/Clone.h"
48 #include "DGtal/io/Color.h"
49 #include "DGtal/io/colormaps/CColorMap.h"
65 template <
typename TColorMap >
111 template <
typename TColorMap >
125 #endif // !defined QuantifiedColorMap_h
127 #undef QuantifiedColorMap_RECURSES
128 #endif // else defined(QuantifiedColorMap_RECURSES)
typename ColorMap::Value Value
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Color operator()(const Value &value) const
ColorMap myColorMap
the colormap that is quantified
Structure representing an RGB triple with alpha component.
int myNbColors
the maximum number of colors
DGtal is the top-level namespace which contains all DGtal functions and types.
BOOST_CONCEPT_ASSERT((concepts::CColorMap< TColorMap >))
Aim: Defines the concept describing a color map. A color map converts a value within a given range in...
QuantifiedColorMap(Clone< ColorMap > colormap, int nb=50)
Aim: A modifier class that quantifies any colormap into a given number of colors. It is particularly ...
QuantifiedColorMap< TColorMap > makeQuantifiedColorMap(TColorMap colormap, int nb=50)