Fawkes API
Fawkes Development Version
|
Interface for colormap generators. More...
#include <>>
Public Member Functions | |
virtual | ~ColormapGenerator () |
Virtual empty destructor. More... | |
virtual void | set_buffer (unsigned char *buffer, unsigned int width, unsigned int height)=0 |
Set image buffer. More... | |
virtual YuvColormap * | get_current ()=0 |
Get the current colormap. More... | |
virtual void | consider ()=0 |
Considers the given buffer and extracts the needed information. More... | |
virtual void | calc ()=0 |
Calculate LUT. More... | |
virtual void | undo ()=0 |
Undo last calls to consider(). More... | |
virtual void | reset ()=0 |
Reset the generator. More... | |
virtual void | reset_undo ()=0 |
Reset undo buffer. More... | |
virtual bool | has_histograms ()=0 |
Check if this generator has histograms. More... | |
virtual std::map< hint_t, Histogram * > * | get_histograms ()=0 |
Get histograms. More... | |
Interface for colormap generators.
Definition at line 39 of file generator.h.
|
virtual |
Virtual empty destructor.
Definition at line 83 of file generator.cpp.
|
pure virtual |
Calculate LUT.
Does the calculation of the lookup table without extracting any further information from the given buffer.
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Considers the given buffer and extracts the needed information.
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Get the current colormap.
With this method you can access the current LUT. This is useful to display the current results as "what would happen if we'd use this LUT?".
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Get histograms.
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Check if this generator has histograms.
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Reset the generator.
This throws away all results accumulated up to now and starts from scratch with the generation process.
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Reset undo buffer.
This throws away all undo information and starts a new undo buffer.
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Set image buffer.
Set the image buffer that is to be considered next.
buffer | image buffer (YUV422 planar format assumed) |
width | width of image in pixels |
height | height of image in pixels |
Implemented in firevision::BayesColormapGenerator.
|
pure virtual |
Undo last calls to consider().
This will eliminate all calls to consider() since the last call to resetUndo(), reset() or object generation.
Implemented in firevision::BayesColormapGenerator.