#include <VLCColorCorrector.h>
Public Member Functions | |
| unsigned char | correctY (int x, int y, int c) const |
| correct an Y pixel value | |
| unsigned char | correctU (int x, int y, int c) const |
| correct an U pixel value | |
| unsigned char | correctV (int x, int y, int c) const |
| correct an V pixel value | |
| VLCColorCorrector () | |
| Constructor. | |
| void | init () |
| Initializes the correction table. | |
| void | disable () |
| Disable the color correction. | |
| void | generateCorrectedImage (const Image &image, Image &correctedImage) const |
| Creates a color corrected image. | |
Private Member Functions | |
| int | getRadius (int x, int y) const |
| Calculates the corresponding radius to an image coordinate. | |
Private Attributes | |
| int | radiusTable [cameraResolutionWidth_ERS7][cameraResolutionHeight_ERS7] |
| the redius table | |
| unsigned char | correctionTable [cameraResolutionWidth_ERS7][256][3] |
| the correction table | |
Definition at line 19 of file VLCColorCorrector.h.
|
|
Constructor.
Definition at line 11 of file VLCColorCorrector.cpp. References disable(), getRobotConfiguration(), RobotConfiguration::getRobotDesign(), and init(). |
Here is the call graph for this function:

|
||||||||||||||||
|
correct an Y pixel value
Definition at line 30 of file VLCColorCorrector.h. Referenced by generateCorrectedImage(). |
|
||||||||||||||||
|
correct an U pixel value
Definition at line 42 of file VLCColorCorrector.h. Referenced by generateCorrectedImage(). |
|
||||||||||||||||
|
correct an V pixel value
Definition at line 54 of file VLCColorCorrector.h. Referenced by generateCorrectedImage(). |
|
|
Initializes the correction table. Table is created from images in whiteImage.log. Definition at line 19 of file VLCColorCorrector.cpp. References Image::cameraInfo, cameraResolutionHeight_ERS7, cameraResolutionWidth_ERS7, disable(), InStream< InFile, InBinary >::eof(), InFile::exists(), Image::frameNumber, getLocation(), getRadius(), idText, Image::image, OUTPUT, InStream< InFile, InBinary >::read(), CameraInfo::resolutionHeight, and CameraInfo::resolutionWidth. Referenced by VLCColorCorrector(). |
Here is the call graph for this function:

|
|
Disable the color correction. Table is cleared. Definition at line 90 of file VLCColorCorrector.cpp. References cameraResolutionHeight_ERS7, and cameraResolutionWidth_ERS7. Referenced by init(), and VLCColorCorrector(). |
|
||||||||||||
|
Creates a color corrected image.
Definition at line 82 of file VLCColorCorrector.h. References Image::cameraInfo, Image::colorTable, correctU(), correctV(), correctY(), Image::getHighResY(), Image::image, CameraInfo::resolutionHeight, CameraInfo::resolutionWidth, and Image::setHighResY(). |
Here is the call graph for this function:

|
||||||||||||
|
Calculates the corresponding radius to an image coordinate.
Definition at line 106 of file VLCColorCorrector.h. References cameraResolutionHeight_ERS7, and cameraResolutionWidth_ERS7. Referenced by init(). |
|
|
the redius table
Definition at line 116 of file VLCColorCorrector.h. |
|
|
the correction table
Definition at line 118 of file VLCColorCorrector.h. |
1.3.6