31#if defined(RandomColorMap_RECURSES)
32#error Recursive header files inclusion detected in RandomColorMap.h
35#define RandomColorMap_RECURSES
37#if !defined RandomColorMap_h
39#define RandomColorMap_h
44#include "DGtal/base/Common.h"
45#include "DGtal/io/colormaps/GradientColorMap.h"
90 RandomColorMap(
const unsigned int &aFirstIndex,
const unsigned int & aLastIndex,
120 const unsigned int &
min()
const;
127 const unsigned int &
max()
const;
200#include "DGtal/io/colormaps/RandomColorMap.ih"
208#undef RandomColorMap_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 a colo...
Aim: access to random color from a gradientColorMap.
const unsigned int & max() const
void addColor(const Color &aColor)
const unsigned int & min() const
RandomColorMap(const RandomColorMap &other)
Color operator()(const unsigned int &aValue) const
std::vector< unsigned int > myColorIndex
void associateRandomIndexColor()
RandomColorMap & operator=(const RandomColorMap &anOther)
void selfDisplay(std::ostream &out) const
GradientColorMap< unsigned int > * myGradientMap
RandomColorMap(const unsigned int &aFirstIndex, const unsigned int &aLastIndex, const Color &aFirstColor=Color::White, const Color &aLastColor=Color::Red)
std::vector< unsigned int > myFreeColorIndex
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ClosedIntegerHalfPlane< TSpace > &object)