ColorTable Class Reference

#include <ColorTable.h>

Inheritance diagram for ColorTable:

ColorTable32K ColorTable64 ColorTableAuto ColorTableCuboids ColorTableReferenceColor ColorTableTSL List of all members.

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

Detailed Description

Base class of ColorTable64 and ColorTableTSL.

Definition at line 23 of file ColorTable.h.


Constructor & Destructor Documentation

ColorTable::ColorTable (  )  [inline]

Constructor

Definition at line 27 of file ColorTable.h.

ColorTable::~ColorTable (  )  [inline]

Destructor

Definition at line 30 of file ColorTable.h.


Member Function Documentation

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.

Parameters:
image A reference to the image to be segmented
colorClassImage A reference to the color class image to be created
Returns:
A reference to the created color class image.

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.

Parameters:
image A reference to the image to be segmented
colorClassImage A reference to the color class image to be created
Returns:
A reference to the created color class image.

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.

Parameters:
y the y value of the pixel
u the u value of the pixel
v the v value of the pixel
Returns:
the color class

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().


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:23:04 2006 for DT2005.panorama by  doxygen 1.4.7