#include <ColorTable.h>
Inheritance diagram for ColorTable:
Public Member Functions | |
ColorTable () | |
~ColorTable () | |
virtual colorClass | getColorClass (const unsigned char y, const unsigned char u, const unsigned char v) const |
virtual void | generateColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
virtual void | generateHighResColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
Definition at line 23 of file ColorTable.h.
ColorTable::ColorTable | ( | ) | [inline] |
Constructor
Definition at line 27 of file ColorTable.h.
ColorTable::~ColorTable | ( | ) | [inline] |
Destructor
Definition at line 30 of file ColorTable.h.
virtual void ColorTable::generateColorClassImage | ( | const Image & | image, | |
ColorClassImage & | colorClassImage | |||
) | const [inline, virtual] |
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.
image | A reference to the image to be segmented | |
colorClassImage | A reference to the color class image to be created |
Reimplemented in ColorTableAuto, ColorTableCuboids, ColorTableReferenceColor, ColorTable32K, ColorTable64, and ColorTableTSL.
Definition at line 53 of file ColorTable.h.
Referenced by BarCodeReader::execute(), and RasterImageProcessor::init().
virtual void ColorTable::generateHighResColorClassImage | ( | const Image & | image, | |
ColorClassImage & | colorClassImage | |||
) | const [inline, virtual] |
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.
image | A reference to the image to be segmented | |
colorClassImage | A reference to the color class image to be created |
Reimplemented in ColorTable32K, and ColorTable64.
Definition at line 67 of file ColorTable.h.
virtual colorClass ColorTable::getColorClass | ( | const unsigned char | y, | |
const unsigned char | u, | |||
const unsigned char | v | |||
) | const [inline, virtual] |
Calculates the color class of a pixel.
y | the y value of the pixel | |
u | the u value of the pixel | |
v | the v value of the pixel |
Reimplemented in ColorTableAuto, ColorTableCuboids, ColorTableReferenceColor, ColorTable32K, ColorTable64, and ColorTableTSL.
Definition at line 39 of file ColorTable.h.
References noColor.
Referenced by ChallengeSpecialVision::countPixels(), Image::getClassifiedColor(), REdgeDetection::getColor(), RasterStrategy::getColor(), RasterSpecialist::getColor(), RoboCupCtrl::getColorClass(), PaintMethodsWin32::paintColorClassUV2CDC(), PaintMethodsWin32::paintColorClassUY2CDC(), and OpenGLMethods::paintColorTable().