#include <ColorTableCuboids.h>
Inheritance diagram for ColorTableCuboids:
Public Member Functions | |
ColorTableCuboids () | |
~ColorTableCuboids () | |
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 |
void | clear () |
void | setThresholds (colorClass color, int minY, int minU, int minV, int maxY, int maxU, int maxV) |
int | getThresholdMin (colorClass color, int channel) const |
int | getThresholdMax (colorClass color, int channel) const |
Private Attributes | |
int | thresholdMin [numOfColors][3] |
int | thresholdMax [numOfColors][3] |
unsigned long int | lastTimeWhenThresholdWasSet [numOfColors] |
Definition at line 19 of file ColorTableCuboids.h.
ColorTableCuboids::ColorTableCuboids | ( | ) |
Constructor
Definition at line 12 of file ColorTableCuboids.cpp.
References green, and setThresholds().
ColorTableCuboids::~ColorTableCuboids | ( | ) |
Destructor
Definition at line 17 of file ColorTableCuboids.cpp.
void ColorTableCuboids::clear | ( | ) |
Definition at line 38 of file ColorTableCuboids.cpp.
References numOfColors, thresholdMax, and thresholdMin.
void ColorTableCuboids::generateColorClassImage | ( | const Image & | image, | |
ColorClassImage & | colorClassImage | |||
) | const [virtual] |
Segments an image to a 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 from ColorTable.
Definition at line 117 of file ColorTableCuboids.cpp.
References ColorClassImage::height, ColorClassImage::image, image, and ColorClassImage::width.
colorClass ColorTableCuboids::getColorClass | ( | const unsigned char | y, | |
const unsigned char | u, | |||
const unsigned char | v | |||
) | const [virtual] |
Calculates the color classes of a point in the yuv color space.
y | the y value of the pixel | |
u | the u value of the pixel | |
v | the v value of the pixel |
Reimplemented from ColorTable.
Definition at line 52 of file ColorTableCuboids.cpp.
References SystemCall::getTimeSince(), green, noColor, orange, skyblue, white, and yellow.
int ColorTableCuboids::getThresholdMax | ( | colorClass | color, | |
int | channel | |||
) | const |
Definition at line 26 of file ColorTableCuboids.cpp.
References thresholdMax.
Referenced by operator<<(), and OpenGLMethods::paintColorTableCuboids().
int ColorTableCuboids::getThresholdMin | ( | colorClass | color, | |
int | channel | |||
) | const |
Definition at line 21 of file ColorTableCuboids.cpp.
References thresholdMin.
Referenced by operator<<(), and OpenGLMethods::paintColorTableCuboids().
void ColorTableCuboids::setThresholds | ( | colorClass | color, | |
int | minY, | |||
int | minU, | |||
int | minV, | |||
int | maxY, | |||
int | maxU, | |||
int | maxV | |||
) |
Definition at line 31 of file ColorTableCuboids.cpp.
References SystemCall::getCurrentSystemTime(), lastTimeWhenThresholdWasSet, thresholdMax, and thresholdMin.
Referenced by ColorTableCuboids(), and operator>>().
unsigned long int ColorTableCuboids::lastTimeWhenThresholdWasSet[numOfColors] [private] |
int ColorTableCuboids::thresholdMax[numOfColors][3] [private] |
Definition at line 67 of file ColorTableCuboids.h.
Referenced by clear(), getThresholdMax(), and setThresholds().
int ColorTableCuboids::thresholdMin[numOfColors][3] [private] |
Definition at line 66 of file ColorTableCuboids.h.
Referenced by clear(), getThresholdMin(), and setThresholds().