24 #ifndef __FIREVISION_MODELS_COLOR_LOOKUPTABLE_H_ 25 #define __FIREVISION_MODELS_COLOR_LOOKUPTABLE_H_ 27 #include <fvmodels/color/colormodel.h> 29 #include <fvutils/colormap/yuvcm.h> 49 virtual color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const;
54 void load(
const char *filename);
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const
Determine classification of YUV pixel.
void reset()
Reset colormap.
Color model based on a lookup table.
YuvColormap * get_colormap() const
Get colormap.
void set_colormap(const YuvColormap &yuvcm)
Set colormap.
void load(const char *filename)
Load colormap from file.
static std::string compose_filename(const std::string format)
Compose filename.
virtual ~ColorModelLookupTable()
Destructor.
ColorModelLookupTable & operator+=(const ColorModelLookupTable &cmlt)
Add colormaps.
ColorModelLookupTable(YuvColormap *colormap)
Create a lookup table with given dimensions not using shared memory.
const char * get_name()
Get name of color model.