Fawkes API  Fawkes Development Version
firevision::ColormapGenerator Class Reference

Interface for colormap generators. More...

#include <>>

Inheritance diagram for firevision::ColormapGenerator:

List of all members.

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 YuvColormapget_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.

Detailed Description

Interface for colormap generators.


Constructor & Destructor Documentation

firevision::ColormapGenerator::~ColormapGenerator ( ) [virtual]

Virtual empty destructor.

Definition at line 83 of file generator.cpp.


Member Function Documentation

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.

See also:
set_buffer()

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?".

Returns:
current colormap

Implemented in firevision::BayesColormapGenerator.

std::map< std::string, Histogram * > * firevision::ColormapGenerator::get_histograms ( ) [pure virtual]

Get histograms.

Returns:
a map of histograms, if any.

Implemented in firevision::BayesColormapGenerator.

bool firevision::ColormapGenerator::has_histograms ( ) [pure virtual]

Check if this generator has histograms.

Returns:
true, if this generator has histograms, false otherwise

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.

Parameters:
bufferimage buffer (YUV422 planar format assumed)
widthwidth of image in pixels
heightheight 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.


The documentation for this class was generated from the following files: