#include <models/color/thresholds.h>
Inheritance diagram for firevision::ColorModelThresholds:
Public Member Functions | |
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. |
Was just for initial development of color models.
Definition at line 86 of file thresholds.h.
color_t firevision::ColorModelThresholds::determine | ( | unsigned int | y, | |
unsigned int | u, | |||
unsigned int | v | |||
) | const [virtual] |
Determine classification of YUV pixel.
Given a pixel in the YUV colorspace the colormodel determines the color classification based on some a-priori knowledge.
y | Y value | |
u | U value | |
v | V value |
Implements firevision::ColorModel.
Definition at line 42 of file thresholds.cpp.
References firevision::C_BLUE, firevision::C_CYAN, firevision::C_GREEN, firevision::C_MAGENTA, firevision::C_ORANGE, firevision::C_OTHER, firevision::C_WHITE, and firevision::C_YELLOW.
const char * firevision::ColorModelThresholds::get_name | ( | ) | [virtual] |
Get name of color model.
Implements firevision::ColorModel.
Definition at line 81 of file thresholds.cpp.
void firevision::ColorModelThresholds::print_thresholds | ( | ) |