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

Public Member Functions | |
| ColorTable () | |
| Constructor. | |
| ~ColorTable () | |
| Destructor. | |
| virtual colorClass | getColorClass (const unsigned char y, const unsigned char u, const unsigned char v) const |
| Calculates the color class of a pixel. | |
| virtual void | generateColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
| Segments an image to an color class image. | |
| virtual void | generateHighResColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
| Segments an image to an color class image using the high resolution y values. | |
| virtual void | clear () |
| Sets the color class of every 4x4x4 to noColor. | |
| virtual void | clearChannel (colorClass colorClass) |
| Sets all cubes that have the given color class to noColor. | |
| virtual void | addColorClass (colorClass colorClass, unsigned char y, unsigned char u, unsigned char v, unsigned char range) |
| Sets the color class for a cube with the size "range" around a pixel given by y,u,v to the given color class. | |
| virtual void | shrink () |
| This function marks the outer pixels of all segmented colors in the colorspace as noColor. | |
| virtual void | shrink (unsigned char color) |
| This function marks the outer pixels of the parameter color in the colorspace as noColor. | |
| virtual void | grow () |
| This function marks all noColor pixels in the colorspace, which are neighbors of segmented pixels, with the neighboring color. | |
| virtual void | grow (unsigned char color) |
| This function marks all noColor pixels in the colorspace, which are neighbors of the parameter color, with the neighboring color. | |
Definition at line 23 of file ColorTable.h.
|
|
Constructor.
Definition at line 27 of file ColorTable.h. |
|
|
Destructor.
Definition at line 30 of file ColorTable.h. |
|
||||||||||||||||
|
Calculates the color class of a pixel.
Reimplemented in ColorTable32K, ColorTable64, ColorTableTSL, ColorTableCuboids, and ColorTableReferenceColor. Definition at line 39 of file ColorTable.h. References noColor. Referenced by ChallengeSpecialVision::countPixels(), Image::getClassifiedColor(), and GT2004EdgeDetection::getColor(). |
|
||||||||||||
|
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 in ColorTable32K, ColorTable64, ColorTableTSL, ColorTableCuboids, and ColorTableReferenceColor. Definition at line 53 of file ColorTable.h. Referenced by BarCodeReader::execute(), and SlamImageProcessor::execute(). |
|
||||||||||||
|
Segments an image to an color class image using the high resolution y values. This doesn't need to used in the image processor, but is needed for visualisation of color tables.
Reimplemented in ColorTable32K, and ColorTable64. Definition at line 67 of file ColorTable.h. |
|
|
Sets the color class of every 4x4x4 to noColor.
Reimplemented in ColorTable32K, ColorTable64, ColorTableTSL, ColorTableCuboids, and ColorTableReferenceColor. Definition at line 73 of file ColorTable.h. |
|
|
Sets all cubes that have the given color class to noColor.
Reimplemented in ColorTable32K, and ColorTable64. Definition at line 76 of file ColorTable.h. |
|
||||||||||||||||||||||||
|
Sets the color class for a cube with the size "range" around a pixel given by y,u,v to the given color class.
Reimplemented in ColorTable32K, and ColorTable64. Definition at line 82 of file ColorTable.h. |
|
|
This function marks the outer pixels of all segmented colors in the colorspace as noColor.
Reimplemented in ColorTable64. Definition at line 92 of file ColorTable.h. |
|
|
This function marks the outer pixels of the parameter color in the colorspace as noColor. ¶m color The color to shrink Reimplemented in ColorTable64. Definition at line 98 of file ColorTable.h. |
|
|
This function marks all noColor pixels in the colorspace, which are neighbors of segmented pixels, with the neighboring color.
Reimplemented in ColorTable64. Definition at line 104 of file ColorTable.h. |
|
|
This function marks all noColor pixels in the colorspace, which are neighbors of the parameter color, with the neighboring color.
Reimplemented in ColorTable64. Definition at line 110 of file ColorTable.h. |
1.3.6