Fawkes API
Fawkes Development Version
|
Parameters that define a certain color. More...
#include <similarity.h>
Public Member Functions | |
void | set_reference (std::vector< unsigned int > &ref) |
Define the RGB values for the reference color. More... | |
color_class_t (color_t expect, std::vector< unsigned int > &v, int chroma_threshold, int saturation_threshold, int luma_threshold=0) | |
Initialize a color class. More... | |
Public Attributes | |
color_t | result |
Discrete color_t represented by this class. More... | |
int | ref_u |
YUV U-component of reference color. More... | |
int | ref_v |
YUV V-component of reference color. More... | |
int | ref_y |
YUV Y-component of reference color. More... | |
int | luma_threshold |
Required luminousity. More... | |
int | ref_length |
Length of U,V vector, i.e. More... | |
int | chroma_threshold |
Required chroma similarity. More... | |
int | saturation_threshold |
Required saturation. More... | |
Parameters that define a certain color.
Definition at line 69 of file similarity.h.
|
inline |
Initialize a color class.
expect | Discrete color_t represented by this class |
v | A 3-element list [R, G, B] |
chroma_threshold | Required color similarity (higher = more similar), 0..255 |
saturation_threshold | Required saturation (higher = more saturation), 0..255 |
luma_threshold | Required luminousity similarity (higher = more similar), 0..255, default 0 |
Definition at line 121 of file similarity.h.
|
inline |
Define the RGB values for the reference color.
ref | A 3-element list [R, G, B] |
Definition at line 100 of file similarity.h.
References chroma_threshold, luma_threshold, and saturation_threshold.
int firevision::ColorModelSimilarity::color_class_t::chroma_threshold |
Required chroma similarity.
Definition at line 90 of file similarity.h.
Referenced by set_reference().
int firevision::ColorModelSimilarity::color_class_t::luma_threshold |
int firevision::ColorModelSimilarity::color_class_t::ref_length |
int firevision::ColorModelSimilarity::color_class_t::ref_u |
YUV U-component of reference color.
Definition at line 75 of file similarity.h.
int firevision::ColorModelSimilarity::color_class_t::ref_v |
YUV V-component of reference color.
Definition at line 78 of file similarity.h.
int firevision::ColorModelSimilarity::color_class_t::ref_y |
YUV Y-component of reference color.
Definition at line 81 of file similarity.h.
color_t firevision::ColorModelSimilarity::color_class_t::result |
Discrete color_t represented by this class.
Definition at line 72 of file similarity.h.
int firevision::ColorModelSimilarity::color_class_t::saturation_threshold |