24 #ifndef _FIREVISION_FVUTILS_COLORMAP_GENERATOR_H__
25 #define _FIREVISION_FVUTILS_COLORMAP_GENERATOR_H__
27 #include <fvutils/base/roi.h>
32 namespace firevision {
42 virtual void set_buffer(
unsigned char *buffer,
unsigned int width,
unsigned int height) = 0;
Interface for colormap generators.
virtual bool has_histograms()=0
Check if this generator has histograms.
virtual void reset()=0
Reset the generator.
virtual ~ColormapGenerator()
Virtual empty destructor.
virtual void set_buffer(unsigned char *buffer, unsigned int width, unsigned int height)=0
Set image buffer.
virtual void calc()=0
Calculate LUT.
virtual std::map< hint_t, Histogram * > * get_histograms()=0
Get histograms.
virtual void consider()=0
Considers the given buffer and extracts the needed information.
virtual void undo()=0
Undo last calls to consider().
virtual void reset_undo()=0
Reset undo buffer.
virtual YuvColormap * get_current()=0
Get the current colormap.