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


Public Member Functions | |
| ColorTable32K () | |
| Constructor. | |
| ~ColorTable32K () | |
| Destructor. | |
| colorClass | getColorClassFast (const unsigned char y, const unsigned char u, const unsigned char v) const |
| Calculates the color class of a pixel, it's fast because is non-virtual and inline, obviously can't be used through the common ColorTable interface. | |
| virtual colorClass | getColorClass (const unsigned char y, const unsigned char u, const unsigned char v) const |
| Calculates the color class of a pixel. | |
| void | getBoxAroundColorClass (colorClass color, Vector3< int > &pNear, Vector3< int > &pFar) |
| Computes an axis aligned box around all positions of a specified color in YUV space. | |
| virtual void | generateColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
| Segments an image to a color class image. | |
| virtual void | generateColorClassImage (const Image &image, ColorClassImage &colorClassImage, colorClass colorClass) const |
| Generates an image that contains all pixels that have the specified color class. | |
| virtual void | generateHighResColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
| Segments an image to an color class image. | |
| virtual void | generateHighResColorClassImage (const Image &image, ColorClassImage &colorClassImage, colorClass colorClass) const |
| Generates an image that contains all pixels that have the specified color class. | |
| void | unpack (unsigned char *unpackedCube, const unsigned char *packedCube) |
| Unpacks the color table into a 64K array, used for performance testing (higher cache hit rate Vs less instructions per pixel). | |
Members to be used by the ColorTable32K dialog | |
| void | clear () |
| Resets the color table to noColor. | |
| void | clearChannel (colorClass colorClass) |
| Sets all cubes that have the given color class to noColor. | |
| void | addColorClass (colorClass colorClass, unsigned char y, unsigned char u, unsigned char v) |
| Sets the color class for a pixel in the color space given by y, u, v to the given color class. | |
| 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. | |
| void | addCuboidToColorClass (colorClass colorClass, unsigned char yMin, unsigned char uMin, unsigned char vMin, unsigned char yMax, unsigned char uMax, unsigned char vMax) |
| Sets the color class for all sub cubes within the specified cuboid to the given color class. | |
| void | removeColorClass (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 noColor. | |
Public Attributes | |
| unsigned char | colorClasses [8 *64 *64] |
| The color table (array of 32K elements). | |
| unsigned char | colorClassesUnpacked [16 *64 *64] |
| The unpacked color table (array of 64K elements), used for performance testing. | |
The 64K elements color cube is packed into a 32KBytes color table (each element is just 4bits) accessed through fast shift and masking operations
Definition at line 27 of file ColorTable32K.h.
|
|
Constructor.
Definition at line 192 of file ColorTable32K.cpp. References clear(). |
Here is the call graph for this function:

|
|
Destructor.
Definition at line 188 of file ColorTable32K.cpp. |
|
||||||||||||||||
|
Calculates the color class of a pixel, it's fast because is non-virtual and inline, obviously can't be used through the common ColorTable interface.
Definition at line 44 of file ColorTable32K.h. References colorClasses. Referenced by generateColorClassImage(), generateHighResColorClassImage(), and getColorClass(). |
|
||||||||||||||||
|
Calculates the color class of a pixel.
Reimplemented from ColorTable. Definition at line 27 of file ColorTable32K.cpp. References getColorClassFast(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Computes an axis aligned box around all positions of a specified color in YUV space.
Definition at line 112 of file ColorTable32K.cpp. References colorClassesUnpacked, Vector3< V >::x, Vector3< V >::y, and Vector3< V >::z. |
|
||||||||||||
|
Segments an image to a color class image. This doesn't need to be used in the image processor, but is needed for visualisation of color tables.
Reimplemented from ColorTable. Definition at line 34 of file ColorTable32K.cpp. References Image::cameraInfo, getColorClassFast(), ColorClassImage::height, Image::image, ColorClassImage::image, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
||||||||||||||||
|
Generates an image that contains all pixels that have the specified color class.
Definition at line 48 of file ColorTable32K.cpp. References Image::cameraInfo, getColorClassFast(), ColorClassImage::height, ColorClassImage::image, Image::image, noColor, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
||||||||||||
|
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 70 of file ColorTable32K.cpp. References Image::cameraInfo, getColorClassFast(), Image::getHighResY(), ColorClassImage::height, Image::image, ColorClassImage::image, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
||||||||||||||||
|
Generates an image that contains all pixels that have the specified color class.
Definition at line 87 of file ColorTable32K.cpp. References Image::cameraInfo, getColorClassFast(), Image::getHighResY(), ColorClassImage::height, ColorClassImage::image, Image::image, noColor, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
||||||||||||
|
Unpacks the color table into a 64K array, used for performance testing (higher cache hit rate Vs less instructions per pixel).
Definition at line 11 of file ColorTable32K.cpp. Referenced by operator>>(). |
|
|
Resets the color table to noColor.
Reimplemented from ColorTable. Definition at line 340 of file ColorTable32K.cpp. References colorClasses, and noColor. Referenced by ColorTable32K(). |
|
|
Sets all cubes that have the given color class to noColor. For that purpose, you should use AIBOVision. Reimplemented from ColorTable. Definition at line 326 of file ColorTable32K.cpp. |
|
||||||||||||||||||||
|
Sets the color class for a pixel in the color space given by y, u, v to the given color class. For that purpose, you should use AIBOVision. Definition at line 202 of file ColorTable32K.cpp. |
|
||||||||||||||||||||||||
|
Sets the color class for a cube with the size "range" around a pixel given by y,u,v to the given color class. For that purpose, you should use AIBOVision. Reimplemented from ColorTable. Definition at line 217 of file ColorTable32K.cpp. |
|
||||||||||||||||||||||||||||||||
|
Sets the color class for all sub cubes within the specified cuboid to the given color class. For that purpose, you should use AIBOVision. Definition at line 257 of file ColorTable32K.cpp. |
|
||||||||||||||||||||
|
Sets the color class for a cube with the size "range" around a pixel given by y,u,v to noColor. For that purpose, you should use AIBOVision. Definition at line 290 of file ColorTable32K.cpp. |
|
|
The color table (array of 32K elements). Each element in the array contains 2 points in the color space having same U,V and adjacent Y. Quantization is 16x4x4 (YUV) Definition at line 138 of file ColorTable32K.h. Referenced by clear(), getColorClassFast(), operator<<(), and operator>>(). |
|
|
The unpacked color table (array of 64K elements), used for performance testing.
Definition at line 143 of file ColorTable32K.h. Referenced by getBoxAroundColorClass(), and operator>>(). |
1.3.6