#include <ColorTableAuto.h>
Inheritance diagram for ColorTableAuto:
Public Member Functions | |
ColorTableAuto () | |
~ColorTableAuto () | |
virtual colorClass | getColorClass (const unsigned char y, const unsigned char u, const unsigned char v) const |
virtual colorClass | getColorClassAuto (const unsigned char y, const unsigned char u, const unsigned char v) const |
virtual void | generateColorClassImage (const Image &image, ColorClassImage &colorClassImage) const |
virtual void | generateColorClassImageAuto (const Image &image, ColorClassImage &colorClassImage) const |
int | getAverageGreen (int channel) const |
int | getGreenMin (int channel) const |
int | getGreenMax (int channel) const |
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 Member Functions | |
void | setGreen () |
Private Attributes | |
int | thresholdMin [numOfColors][3] |
int | thresholdMax [numOfColors][3] |
unsigned long int | lastTimeWhenThresholdWasSet [numOfColors] |
int | averageGreen [3] |
int | greenFieldAutoMin [3] |
int | greenFieldAutoMax [3] |
int | skyblueAutoMin [3] |
int | skyblueAutoMax [3] |
int | yellowAutoMin [3] |
int | yellowAutoMax [3] |
int | pinkAutoMin [3] |
int | pinkAutoMax [3] |
int | whiteAutoMin [3] |
int | whiteAutoMax [3] |
int | whiteFixedMin [3] |
int | whiteFixedMax [3] |
Definition at line 26 of file ColorTableAuto.h.
ColorTableAuto::ColorTableAuto | ( | ) |
Constructor
Definition at line 19 of file ColorTableAuto.cpp.
References green, and setThresholds().
ColorTableAuto::~ColorTableAuto | ( | ) |
Destructor
Definition at line 24 of file ColorTableAuto.cpp.
void ColorTableAuto::generateColorClassImage | ( | const Image & | image, | |
ColorClassImage & | colorClassImage | |||
) | const [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 from ColorTable.
Definition at line 238 of file ColorTableAuto.cpp.
References ColorClassImage::image, and image.
void ColorTableAuto::generateColorClassImageAuto | ( | const Image & | image, | |
ColorClassImage & | colorClassImage | |||
) | const [virtual] |
int ColorTableAuto::getAverageGreen | ( | int | channel | ) | const |
colorClass ColorTableAuto::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 109 of file ColorTableAuto.cpp.
References SystemCall::getTimeSince(), green, noColor, orange, skyblue, white, and yellow.
colorClass ColorTableAuto::getColorClassAuto | ( | const unsigned char | y, | |
const unsigned char | u, | |||
const unsigned char | v | |||
) | const [virtual] |
int ColorTableAuto::getGreenMax | ( | int | channel | ) | const |
int ColorTableAuto::getGreenMin | ( | int | channel | ) | const |
int ColorTableAuto::getThresholdMax | ( | colorClass | color, | |
int | channel | |||
) | const |
Definition at line 44 of file ColorTableAuto.cpp.
References thresholdMax.
Referenced by operator<<().
int ColorTableAuto::getThresholdMin | ( | colorClass | color, | |
int | channel | |||
) | const |
Definition at line 39 of file ColorTableAuto.cpp.
References thresholdMin.
Referenced by operator<<().
void ColorTableAuto::setGreen | ( | ) | [private] |
Definition at line 62 of file ColorTableAuto.cpp.
References averageGreen, green, greenFieldAutoMax, greenFieldAutoMin, pinkAutoMin, skyblueAutoMax, skyblueAutoMin, thresholdMax, thresholdMin, whiteAutoMax, whiteAutoMin, whiteFixedMax, whiteFixedMin, yellowAutoMax, and yellowAutoMin.
Referenced by setThresholds().
void ColorTableAuto::setThresholds | ( | colorClass | color, | |
int | minY, | |||
int | minU, | |||
int | minV, | |||
int | maxY, | |||
int | maxU, | |||
int | maxV | |||
) |
Definition at line 54 of file ColorTableAuto.cpp.
References SystemCall::getCurrentSystemTime(), green, lastTimeWhenThresholdWasSet, setGreen(), thresholdMax, and thresholdMin.
Referenced by ColorTableAuto(), and operator>>().
int ColorTableAuto::averageGreen[3] [private] |
int ColorTableAuto::greenFieldAutoMax[3] [private] |
int ColorTableAuto::greenFieldAutoMin[3] [private] |
unsigned long int ColorTableAuto::lastTimeWhenThresholdWasSet[numOfColors] [private] |
int ColorTableAuto::pinkAutoMax[3] [private] |
Definition at line 110 of file ColorTableAuto.h.
int ColorTableAuto::pinkAutoMin[3] [private] |
int ColorTableAuto::skyblueAutoMax[3] [private] |
int ColorTableAuto::skyblueAutoMin[3] [private] |
int ColorTableAuto::thresholdMax[numOfColors][3] [private] |
Definition at line 95 of file ColorTableAuto.h.
Referenced by getGreenMax(), getThresholdMax(), setGreen(), and setThresholds().
int ColorTableAuto::thresholdMin[numOfColors][3] [private] |
Definition at line 94 of file ColorTableAuto.h.
Referenced by getGreenMin(), getThresholdMin(), setGreen(), and setThresholds().
int ColorTableAuto::whiteAutoMax[3] [private] |
int ColorTableAuto::whiteAutoMin[3] [private] |
int ColorTableAuto::whiteFixedMax[3] [private] |
int ColorTableAuto::whiteFixedMin[3] [private] |
int ColorTableAuto::yellowAutoMax[3] [private] |
int ColorTableAuto::yellowAutoMin[3] [private] |