16 #ifndef _FIREVISION_DARKNESS_THRESHOLD_H_
17 #define _FIREVISION_DARKNESS_THRESHOLD_H_
19 #include <fvmodels/color/colormodel.h>
21 namespace firevision {
26 unsigned int y_thresh_, u_thresh_, v_thresh_;
27 unsigned int ref_u_, ref_v_;
31 unsigned int u_thresh = 30,
32 unsigned int v_thresh = 30,
33 unsigned int ref_u = 128,
34 unsigned int ref_v = 128);
36 color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const;
Detect configurable shades/hues of "black" as a cuboid in YUV space.
const char * get_name()
Get name of color model.
ColorModelBlack(unsigned int y_thresh=30, unsigned int u_thresh=30, unsigned int v_thresh=30, unsigned int ref_u=128, unsigned int ref_v=128)
Initialize black colormodel.
color_t determine(unsigned int y, unsigned int u, unsigned int v) const
Determine classification of YUV pixel.