ColorObjectMap Class Reference
Color mapping class. More...
#include <fvutils/color/color_object_map.h>
Public Member Functions | |
| ~ColorObjectMap () | |
| Destructor. | |
| const color_t & | get (hint_t hint) const |
| Inline color_t reference getter. | |
| const hint_t | get (color_t color) const |
| Inline hint_t(ROI) reference getter. | |
Static Public Member Functions | |
| static const ColorObjectMap & | get_instance () |
| ColorObjectMap getter. | |
| static YUV_t | get_color (color_t color) |
| YUV_t getter. | |
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.
Definition at line 33 of file color_object_map.h.
Constructor & Destructor Documentation
| ColorObjectMap::~ColorObjectMap | ( | ) |
Member Function Documentation
| const hint_t ColorObjectMap::get | ( | color_t | color | ) | const [inline] |
Inline hint_t(ROI) reference getter.
- Parameters:
-
color value of interest
- Returns:
- corresponding ROI
Definition at line 42 of file color_object_map.h.
| const color_t & ColorObjectMap::get | ( | hint_t | hint | ) | const [inline] |
Inline color_t reference getter.
- Parameters:
-
hint the ROI of interest
- Returns:
- the matching color_t value
Definition at line 40 of file color_object_map.h.
Referenced by SimpleColorClassifier::classify().
| YUV_t ColorObjectMap::get_color | ( | color_t | color | ) | [static] |
YUV_t getter.
- Parameters:
-
color a color_t value (
- See also:
- color_t enumeration)
- Returns:
- a corresponding YUV color
Definition at line 98 of file color_object_map.cpp.
References YUV_t_struct::black(), YUV_t_struct::blue(), YUV_t_struct::cyan(), YUV_t_struct::gray(), YUV_t_struct::green(), YUV_t_struct::magenta(), YUV_t_struct::orange(), YUV_t_struct::red(), YUV_t_struct::white(), and YUV_t_struct::yellow().
Referenced by ColorTrainWidget::draw_segmentation_result(), Colormap::to_image(), and ColorModel::uv_to_image().
| static const ColorObjectMap & ColorObjectMap::get_instance | ( | ) | [inline, static] |
ColorObjectMap getter.
- Returns:
- the one and only instance of ColorObjectMap
Definition at line 37 of file color_object_map.h.
Referenced by SimpleColorClassifier::add_hint(), BayesHistosToLut::calculateLutAllColors(), BayesHistosToLut::calculateLutValues(), SimpleColorClassifier::classify(), SimpleColorClassifier::get_mass_point_of_ball(), and SimpleColorClassifier::set_hint().
The documentation for this class was generated from the following files:
- src/firevision/fvutils/color/color_object_map.h
- src/firevision/fvutils/color/color_object_map.cpp

