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


Members to be used by the ColorTable64 dialog | |
| enum | { CT32K_SIZE = 8*64*64, CT64_SIZE = 64*64*64 } |
| void | clear () |
| Sets the color class of every 4x4x4 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. | |
| void | setFormat (Format form) |
| In & | operator>> (In &stream, ColorTable64 &colorTable64) |
| Streaming operator that reads a ColorTable64 from a stream. | |
Public Types | |
| enum | Format { CT32K, CT64 } |
Public Member Functions | |
| ColorTable64 () | |
| Constructor. | |
| ~ColorTable64 () | |
| Destructor. | |
| 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 an 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 | shrink () |
| This function marks the outer pixels of all segmented colors in the colorspace as noColor. | |
| void | shrink (unsigned char color) |
| This function marks the outer pixels of the parameter color in the colorspace as noColor. | |
| void | grow () |
| This function marks all noColor pixels in the colorspace, which are neighbors of segmented pixels, with the neighboring color. | |
| 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. | |
Public Attributes | |
| unsigned char | colorClasses [64][64][64] |
| The color table. | |
Private Member Functions | |
| bool | hasXNeighbors (unsigned char y, unsigned char u, unsigned char v, int x, unsigned char colorClassesArray[64][64][64]) |
| Returns true if the pixel y,u,v in the colorClassesArray has more than x or x neighbors. | |
| unsigned char | getNeighborColor (unsigned char y, unsigned char u, unsigned char v, unsigned char colorClassesArray[64][64][64]) |
| Returns the color of one of the neighboring pixels of the pixel y,u,v. | |
Static Private Member Functions | |
| void | convert32Kto64 (const unsigned char *c32k, unsigned char c64[64][64][64]) |
Private Attributes | |
| Format | format |
Definition at line 30 of file ColorTable64.h.
|
|
Definition at line 39 of file ColorTable64.h. |
|
|
Definition at line 177 of file ColorTable64.h. |
|
|
Constructor.
Definition at line 106 of file ColorTable64.cpp. References clear(). |
Here is the call graph for this function:

|
|
Destructor.
Definition at line 111 of file ColorTable64.cpp. |
|
||||||||||||||||
|
Calculates the color class of a pixel.
Reimplemented from ColorTable. Definition at line 48 of file ColorTable64.h. |
|
||||||||||||||||
|
Computes an axis aligned box around all positions of a specified color in YUV space.
Definition at line 242 of file ColorTable64.cpp. References Vector3< V >::x, Vector3< V >::y, and Vector3< V >::z. |
|
||||||||||||
|
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 11 of file ColorTable64.cpp. References Image::cameraInfo, ColorClassImage::height, Image::image, ColorClassImage::image, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
|
||||||||||||||||
|
Generates an image that contains all pixels that have the specified color class.
Definition at line 57 of file ColorTable64.cpp. References Image::cameraInfo, ColorClassImage::height, ColorClassImage::image, Image::image, noColor, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
|
||||||||||||
|
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 40 of file ColorTable64.cpp. References Image::cameraInfo, 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 79 of file ColorTable64.cpp. References Image::cameraInfo, Image::getHighResY(), ColorClassImage::height, ColorClassImage::image, Image::image, noColor, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and ColorClassImage::width. |
Here is the call graph for this function:

|
|
Sets the color class of every 4x4x4 to noColor.
Reimplemented from ColorTable. Definition at line 228 of file ColorTable64.cpp. References noColor. Referenced by ColorTable64(). |
|
|
Sets all cubes that have the given color class to noColor.
Reimplemented from ColorTable. Definition at line 214 of file ColorTable64.cpp. References noColor. |
|
||||||||||||||||||||
|
Sets the color class for a pixel in the color space given by y, u, v to the given color class.
Definition at line 114 of file ColorTable64.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.
Reimplemented from ColorTable. Definition at line 125 of file ColorTable64.cpp. References ASSERT. |
|
||||||||||||||||||||||||||||||||
|
Sets the color class for all sub cubes within the specified cuboid to the given color class.
Definition at line 157 of file ColorTable64.cpp. References ASSERT. |
|
||||||||||||||||||||
|
Sets the color class for a cube with the size "range" around a pixel given by y,u,v to noColor.
Definition at line 186 of file ColorTable64.cpp. References noColor. |
|
|
Definition at line 172 of file ColorTable64.h. References format. Referenced by ColorTable64Mod::setup(), ColorTable32KMod::setup(), and VLCImageProcessor::VLCImageProcessor(). |
|
|
This function marks the outer pixels of all segmented colors in the colorspace as noColor.
Reimplemented from ColorTable. Definition at line 573 of file ColorTable64.cpp. References hasXNeighbors(), and noColor. |
Here is the call graph for this function:

|
|
This function marks the outer pixels of the parameter color in the colorspace as noColor. ¶m color The color to shrink Reimplemented from ColorTable. Definition at line 593 of file ColorTable64.cpp. References hasXNeighbors(), and noColor. |
Here is the call graph for this function:

|
|
This function marks all noColor pixels in the colorspace, which are neighbors of segmented pixels, with the neighboring color.
Reimplemented from ColorTable. Definition at line 613 of file ColorTable64.cpp. References getNeighborColor(), and hasXNeighbors(). |
Here is the call graph for this function:

|
|
This function marks all noColor pixels in the colorspace, which are neighbors of the parameter color, with the neighboring color.
Reimplemented from ColorTable. Definition at line 633 of file ColorTable64.cpp. References getNeighborColor(), and hasXNeighbors(). |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 25 of file ColorTable64.cpp. Referenced by operator>>(). |
|
||||||||||||||||||||||||
|
Returns true if the pixel y,u,v in the colorClassesArray has more than x or x neighbors.
Definition at line 462 of file ColorTable64.cpp. |
|
||||||||||||||||||||
|
Returns the color of one of the neighboring pixels of the pixel y,u,v. If no direct neighbor is present, noColor s returned.
Definition at line 518 of file ColorTable64.cpp. References noColor. Referenced by grow(). |
|
||||||||||||
|
Streaming operator that reads a ColorTable64 from a stream.
Definition at line 404 of file ColorTable64.cpp. |
|
|
The color table. Each element in the array contains the color class of a 4x4x4 cube in the color space. Definition at line 114 of file ColorTable64.h. Referenced by operator<<(), and operator>>(). |
|
|
Definition at line 213 of file ColorTable64.h. Referenced by operator>>(), and setFormat(). |
1.3.6