25 #ifndef _FIREVISION_COLORMODEL_LUMINANCE_H_ 26 #define _FIREVISION_COLORMODEL_LUMINANCE_H_ 28 #include <fvmodels/color/colormodel.h> 30 namespace firevision {
38 #define THRESHOLD_WHITE_Y_LOW 170 45 color_t
determine(
unsigned int y,
unsigned int u,
unsigned int v)
const;
51 unsigned int threshold_white_low_;
Really simple thresholds-based model with some hard-coded thresholds.
color_t determine(unsigned int y, unsigned int u, unsigned int v) const
Determine classification of YUV pixel.
const char * get_name()
Get name of color model.
void print_thresholds()
Print the thresholds to stdout.
ColorModelLuminance(const unsigned int threshold_white_low=THRESHOLD_WHITE_Y_LOW)
Constructor.