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>
45 virtual color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const;
50 void load(
const char *filename);
Color model based on a lookup table.
void reset()
Reset colormap.
const char * get_name()
Get name of color model.
YuvColormap * get_colormap() const
Get colormap.
ColorModelLookupTable(YuvColormap *colormap)
Create a lookup table with given dimensions not using shared memory.
void load(const char *filename)
Load colormap from file.
void set_colormap(const YuvColormap &yuvcm)
Set colormap.
static std::string compose_filename(const std::string format)
Compose filename.
virtual ~ColorModelLookupTable()
Destructor.
ColorModelLookupTable & operator+=(const ColorModelLookupTable &cmlt)
Add colormaps.
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const
Determine classification of YUV pixel.