Fawkes API
Fawkes Development Version
|
24 #ifndef _FIREVISION_MODELS_COLOR_LOOKUPTABLE_H_
25 #define _FIREVISION_MODELS_COLOR_LOOKUPTABLE_H_
27 #include <fvmodels/color/colormodel.h>
28 #include <fvutils/colormap/yuvcm.h>
32 namespace firevision {
34 class ColorModelLookupTable :
public ColorModel
45 virtual color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const;
50 void load(
const char *filename);
void reset()
Reset colormap.
static std::string compose_filename(const std::string format)
Compose filename.
virtual ~ColorModelLookupTable()
Destructor.
ColorModelLookupTable(YuvColormap *colormap)
Create a lookup table with given dimensions not using shared memory.
void set_colormap(const YuvColormap &yuvcm)
Set colormap.
ColorModelLookupTable & operator+=(const ColorModelLookupTable &cmlt)
Add colormaps.
void load(const char *filename)
Load colormap from file.
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const
YuvColormap * get_colormap() const
Get colormap.