Fawkes API  Fawkes Development Version
firevision::ColorObjectMap Class Reference

#include <>>

Public Member Functions

 ~ColorObjectMap ()
 Destructor. More...
 
color_t get (hint_t hint) const
 
hint_t get (color_t color) const
 

Static Public Member Functions

static const ColorObjectMapget_instance ()
 
static YUV_t get_color (color_t color)
 YUV_t getter. More...
 

Detailed Description

Color mapping class. This class defines a mapping between regions of interest and

See also
color_t values. It also provides corresponding
YUVColor values for a color_t.
Author
Christof Rath

Definition at line 41 of file color_object_map.h.

Constructor & Destructor Documentation

◆ ~ColorObjectMap()

firevision::ColorObjectMap::~ColorObjectMap ( )

Destructor.

Definition at line 98 of file color_object_map.cpp.

Member Function Documentation

◆ get() [1/2]

const hint_t firevision::ColorObjectMap::get ( color_t  color) const
inline

Inline hint_t(ROI) reference getter

Parameters
colorvalue of interest
Returns
corresponding ROI

Definition at line 65 of file color_object_map.h.

◆ get() [2/2]

const color_t & firevision::ColorObjectMap::get ( hint_t  hint) const
inline

Inline color_t reference getter.

Parameters
hintthe ROI of interest
Returns
the matching color_t value

Definition at line 59 of file color_object_map.h.

◆ get_color()

YUV_t firevision::ColorObjectMap::get_color ( color_t  color)
static

YUV_t getter.

Parameters
colora color_t value (
See also
color_t enumeration)
Returns
a corresponding YUV color

Definition at line 107 of file color_object_map.cpp.

Referenced by ColorTrainWidget::draw_segmentation_result(), firevision::ColorModel::uv_to_image(), and firevision::FilterROIDraw::~FilterROIDraw().

◆ get_instance()

static const ColorObjectMap & firevision::ColorObjectMap::get_instance ( )
inlinestatic

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