ColorModelThresholds Class Reference

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

#include <models/color/thresholds.h>

Inheritance diagram for ColorModelThresholds:

List of all members.


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.

Detailed Description

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

Was just for initial development of color models.

Definition at line 81 of file thresholds.h.


Member Function Documentation

color_t 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:
y Y value
u U value
v V value

Implements ColorModel.

Definition at line 37 of file thresholds.cpp.

const char * ColorModelThresholds::get_name (  )  [virtual]

Get name of color model.

Returns:
name of color model.
Author:
Tim Niemueller

Implements ColorModel.

Definition at line 76 of file thresholds.cpp.

void ColorModelThresholds::print_thresholds (  ) 

Print the thresholds to stdout.

Definition at line 85 of file thresholds.cpp.


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