#include <ColorTableTSL.h>
Inheritance diagram for ColorTableTSL:


Members to be used by the ColorTableTSL dialog | |
| void | convertYUVToTSL (unsigned char y, unsigned char u, unsigned char v, unsigned char *t, unsigned char *s, unsigned char *l) const |
| YUV->TSL conversion. | |
| colorClass | classifyTSL (unsigned char t, unsigned char s, unsigned char l) const |
| TSL->colorClass classification. | |
| unsigned char | colorClasses [32][64][64] |
| The color table. | |
| unsigned char | tsl_threshold [numOfColors][2][3] |
| The TSL threshold table. | |
| unsigned char | tsl_index |
| The TSL threshold index. | |
| colorClass | tsl_order [numOfColors] |
| The TSL order table. | |
Public Member Functions | |
| ColorTableTSL () | |
| Constructor. | |
| ~ColorTableTSL () | |
| Destructor. | |
| void | clear () |
| Clear color tables. | |
| void | reset () |
| Reset to default TSL values. | |
| void | generateTSLDialogImage (const Image &image, ColorClassImage &colorClassImage) |
| Generates the Image for the TSL-Dialog-Bar. | |
| void | addColorClass (colorClass colorClass, unsigned char t_min, unsigned char t_max, unsigned char s_min, unsigned char s_max, unsigned char l_min, unsigned char l_max) |
| Add a TSL range color class to the color table. | |
| void | calculateLUT () |
| Calculates the lookup table. | |
| virtual colorClass | getColorClass (const unsigned char y, const unsigned char u, const unsigned char v) const |
| Returns the color class of a pixel. | |
| virtual void | generateColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
| Segments an image to an color class image. | |
Private Attributes | |
| MSH2004ColorCorrector | corrector |
Definition at line 29 of file ColorTableTSL.h.
|
|
Constructor.
Definition at line 15 of file ColorTableTSL.cpp. |
|
|
Destructor.
Definition at line 24 of file ColorTableTSL.cpp. |
|
|
Clear color tables.
Reimplemented from ColorTable. Definition at line 31 of file ColorTableTSL.cpp. References noColor, numOfColors, tsl_index, tsl_order, and tsl_threshold. Referenced by reset(). |
|
|
Reset to default TSL values.
Definition at line 59 of file ColorTableTSL.cpp. References addColorClass(), clear(), and noColor. Referenced by operator>>(). |
Here is the call graph for this function:

|
||||||||||||
|
Generates the Image for the TSL-Dialog-Bar.
Definition at line 341 of file ColorTableTSL.cpp. References Image::cameraInfo, classifyTSL(), convertYUVToTSL(), ColorClassImage::height, ColorClassImage::image, Image::image, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||||||
|
Add a TSL range color class to the color table.
Definition at line 78 of file ColorTableTSL.cpp. References tsl_index, tsl_order, and tsl_threshold. Referenced by reset(). |
|
|
Calculates the lookup table.
Definition at line 100 of file ColorTableTSL.cpp. References classifyTSL(), and convertYUVToTSL(). Referenced by Cognition::handleMessage(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Returns the color class of a pixel.
Reimplemented from ColorTable. Definition at line 122 of file ColorTableTSL.cpp. Referenced by generateColorClassImage(). |
|
||||||||||||
|
Segments an image to an color class image. This doesn't need to used in the image processor, but is needed for visualisation of color tables.
Reimplemented from ColorTable. Definition at line 246 of file ColorTableTSL.cpp. References Image::cameraInfo, corrector, getColorClass(), MSH2004ColorCorrector::getCorrectedPixel(), ColorClassImage::height, ColorClassImage::image, Image::image, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
YUV->TSL conversion.
Definition at line 140 of file ColorTableTSL.cpp. Referenced by calculateLUT(), and generateTSLDialogImage(). |
|
||||||||||||||||
|
TSL->colorClass classification.
Definition at line 209 of file ColorTableTSL.cpp. References noColor, tsl_index, tsl_order, and tsl_threshold. Referenced by calculateLUT(), and generateTSLDialogImage(). |
|
|
The color table. Each entry contains both the color class A (lower 4 bits) and the color class B (higher 4 bits) values. As Y information is less relevant, only 5 bits are used for Y; U and V use 6 bits. Definition at line 132 of file ColorTableTSL.h. |
|
|
The TSL threshold table. This table stores the TSL thresholds as given by addColorClass() and updateColorClass(). The first index selects the color class. The second index selects min (0) or max (1). The third index selects t (0), s (1) or l (2). Definition at line 142 of file ColorTableTSL.h. Referenced by addColorClass(), classifyTSL(), clear(), operator<<(), and operator>>(). |
|
|
The TSL threshold index.
Definition at line 147 of file ColorTableTSL.h. Referenced by addColorClass(), classifyTSL(), and clear(). |
|
|
The TSL order table. It contains a permutation of colorClass. Definition at line 153 of file ColorTableTSL.h. Referenced by addColorClass(), classifyTSL(), clear(), operator<<(), and operator>>(). |
|
|
Definition at line 159 of file ColorTableTSL.h. Referenced by generateColorClassImage(). |
1.3.6