ColorTableAuto Class Reference

#include <ColorTableAuto.h>

Inheritance diagram for ColorTableAuto:

ColorTable List of all members.

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]

Detailed Description

Author:
Matthias Jüngel

Definition at line 26 of file ColorTableAuto.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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 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]

Definition at line 222 of file ColorTableAuto.cpp.

References ColorClassImage::image, and image.

int ColorTableAuto::getAverageGreen ( int  channel  )  const

Definition at line 49 of file ColorTableAuto.cpp.

References averageGreen.

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.

Parameters:
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]

Calculates the color classes of a point in the yuv color space.

Parameters:
y the y value of the pixel
u the u value of the pixel
v the v value of the pixel

Definition at line 176 of file ColorTableAuto.cpp.

References green, noColor, skyblue, white, and yellow.

int ColorTableAuto::getGreenMax ( int  channel  )  const

Definition at line 34 of file ColorTableAuto.cpp.

References green, and thresholdMax.

int ColorTableAuto::getGreenMin ( int  channel  )  const

Definition at line 29 of file ColorTableAuto.cpp.

References green, and thresholdMin.

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


Member Data Documentation

int ColorTableAuto::averageGreen[3] [private]

Definition at line 98 of file ColorTableAuto.h.

Referenced by getAverageGreen(), and setGreen().

int ColorTableAuto::greenFieldAutoMax[3] [private]

Definition at line 101 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::greenFieldAutoMin[3] [private]

Definition at line 100 of file ColorTableAuto.h.

Referenced by setGreen().

unsigned long int ColorTableAuto::lastTimeWhenThresholdWasSet[numOfColors] [private]

Definition at line 96 of file ColorTableAuto.h.

Referenced by setThresholds().

int ColorTableAuto::pinkAutoMax[3] [private]

Definition at line 110 of file ColorTableAuto.h.

int ColorTableAuto::pinkAutoMin[3] [private]

Definition at line 109 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::skyblueAutoMax[3] [private]

Definition at line 104 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::skyblueAutoMin[3] [private]

Definition at line 103 of file ColorTableAuto.h.

Referenced by setGreen().

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]

Definition at line 113 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::whiteAutoMin[3] [private]

Definition at line 112 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::whiteFixedMax[3] [private]

Definition at line 116 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::whiteFixedMin[3] [private]

Definition at line 115 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::yellowAutoMax[3] [private]

Definition at line 107 of file ColorTableAuto.h.

Referenced by setGreen().

int ColorTableAuto::yellowAutoMin[3] [private]

Definition at line 106 of file ColorTableAuto.h.

Referenced by setGreen().


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