24 #ifndef __FIREVISION_MODELS_COLOR_COLOR_MAPPING_H__ 25 #define __FIREVISION_MODELS_COLOR_COLOR_MAPPING_H__ 27 #include <fvutils/base/types.h> 28 #include <fvutils/base/roi.h> 29 #include <fvutils/color/yuv.h> 45 const color_t&
get(hint_t hint)
const 46 {
return __color_for_hint.find(hint) != __color_for_hint.end() ? __color_for_hint.find(hint)->second : __c_other; }
47 const hint_t
get(color_t color)
const 48 {
return __hint_for_color.find(color) != __hint_for_color.end() ? __hint_for_color.find(color)->second : __h_unknown; }
52 void set_mapping(hint_t roi, color_t color);
55 std::map<hint_t, color_t> __color_for_hint;
56 std::map<color_t, hint_t> __hint_for_color;
63 #endif // __FIREVISION_MODELS_COLOR_COLOR_MAPPING_H__ static const ColorObjectMap & get_instance()
ColorObjectMap getter.
~ColorObjectMap()
Destructor.
static YUV_t get_color(color_t color)
YUV_t getter.