24#include <core/exceptions/software.h>
25#include <core/exceptions/system.h>
26#include <fvmodels/color/lookuptable.h>
27#include <fvutils/color/yuv.h>
28#include <fvutils/colormap/cmfile.h>
29#include <fvutils/colormap/yuvcm.h>
30#include <fvutils/ipc/shm_lut.h>
33#include <sys/utsname.h>
70 colormap_ =
new YuvColormap(lut_id, destroy_on_free);
82 colormap_ =
new YuvColormap(lut_id, destroy_on_free, depth);
102 colormap_ =
new YuvColormap(tycm, lut_id, destroy_on_free);
136 return "ColorModelLookupTable";
184 *colormap_ += *(cmlt.colormap_);
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.
static std::string compose_filename(const std::string format)
Compose filename.
Colormap * get_colormap()
Get a freshly generated colormap based on current file content.
virtual void read(const char *file_name)
Read file.
virtual void reset()
Reset colormap.
virtual color_t determine(unsigned int y, unsigned int u, unsigned int v) const
Determine color class for given YUV value.
Fawkes library namespace.