Fawkes API  Fawkes Development Version
firevision::ColorModelThresholds Class Reference

Really simple thresholds-based model with some hard-coded thresholds. More...

#include <>>

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. More...
 
const char * get_name ()
 Get name of color model. More...
 
void print_thresholds ()
 Print the thresholds to stdout. More...
 
- Public Member Functions inherited from firevision::ColorModel
virtual ~ColorModel ()
 Virtual empty destructor. More...
 
virtual void uv_to_image (unsigned char *yuv422_planar_buffer, unsigned int y)
 Create image from color model. More...
 

Detailed Description

Really simple thresholds-based model with some hard-coded thresholds.

Was just for initial development of color models.

Definition at line 86 of file thresholds.h.

Member Function Documentation

◆ determine()

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.

Parameters
yY value
uU value
vV value
Returns
color classification

Implements firevision::ColorModel.

Definition at line 42 of file thresholds.cpp.

◆ get_name()

const char * firevision::ColorModelThresholds::get_name ( )
virtual

Get name of color model.

Returns
name of color model.
Author
Tim Niemueller

Implements firevision::ColorModel.

Definition at line 81 of file thresholds.cpp.

◆ print_thresholds()

void firevision::ColorModelThresholds::print_thresholds ( )

Print the thresholds to stdout.

Definition at line 90 of file thresholds.cpp.


The documentation for this class was generated from the following files: