31 #if defined(QuantifiedColorMap_RECURSES)
32 #error Recursive header files inclusion detected in QuantifiedColorMap.h
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 >
127 #undef QuantifiedColorMap_RECURSES
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Structure representing an RGB triple with alpha component.
DGtal is the top-level namespace which contains all DGtal functions and types.
QuantifiedColorMap< TColorMap > makeQuantifiedColorMap(TColorMap colormap, int nb=50)
Aim: A modifier class that quantifies any colormap into a given number of colors. It is particularly ...
Color operator()(const Value &value) const
BOOST_CONCEPT_ASSERT((concepts::CColorMap< TColorMap >))
QuantifiedColorMap(Clone< ColorMap > colormap, int nb=50)
ColorMap myColorMap
the colormap that is quantified
typename ColorMap::Value Value
int myNbColors
the maximum number of colors
Aim: Defines the concept describing a color map. A color map converts a value within a given range in...