#include <fvutils/colormap/generator.h>
Inheritance diagram for firevision::ColormapGenerator:
Public Member Functions | |
virtual | ~ColormapGenerator () |
Virtual empty destructor. | |
virtual void | set_buffer (unsigned char *buffer, unsigned int width, unsigned int height)=0 |
Set image buffer. | |
virtual YuvColormap * | get_current ()=0 |
Get the current colormap. | |
virtual void | consider ()=0 |
Considers the given buffer and extracts the needed information. | |
virtual void | calc ()=0 |
Calculate LUT. | |
virtual void | undo ()=0 |
Undo last calls to consider(). | |
virtual void | reset ()=0 |
Reset the generator. | |
virtual void | reset_undo ()=0 |
Reset undo buffer. | |
virtual bool | has_histograms ()=0 |
Check if this generator has histograms. | |
virtual std::map< hint_t, Histogram * > * | get_histograms ()=0 |
Get histograms. |
Definition at line 39 of file generator.h.
firevision::ColormapGenerator::~ColormapGenerator | ( | ) | [virtual] |
void firevision::ColormapGenerator::calc | ( | ) | [pure virtual] |
Calculate LUT.
Does the calculation of the lookup table without extracting any further information from the given buffer.
Implemented in firevision::BayesColormapGenerator.
void firevision::ColormapGenerator::consider | ( | ) | [pure virtual] |
Considers the given buffer and extracts the needed information.
Implemented in firevision::BayesColormapGenerator.
Colormap * firevision::ColormapGenerator::get_current | ( | ) | [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.
std::map< std::string, Histogram * > * firevision::ColormapGenerator::get_histograms | ( | ) | [pure virtual] |
Get histograms.
Implemented in firevision::BayesColormapGenerator.
bool firevision::ColormapGenerator::has_histograms | ( | ) | [pure virtual] |
Check if this generator has histograms.
Implemented in firevision::BayesColormapGenerator.
void firevision::ColormapGenerator::reset | ( | ) | [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.
void firevision::ColormapGenerator::reset_undo | ( | ) | [pure virtual] |
Reset undo buffer.
This throws away all undo information and starts a new undo buffer.
Implemented in firevision::BayesColormapGenerator.
void firevision::ColormapGenerator::set_buffer | ( | unsigned char * | buffer, | |
unsigned int | width, | |||
unsigned int | height | |||
) | [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.
void firevision::ColormapGenerator::undo | ( | ) | [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.