#include <MSH2004ColorCorrector.h>
Public Member Functions | |
| MSH2004ColorCorrector () | |
| Default constructor. | |
| void | getCorrectedPixel (const int x, const int y, unsigned char &Y, unsigned char &U, unsigned char &V) const |
| This functions returns a radiometric distortion corrected pixel. | |
| void | getCorrectedColor (const int x, const int y, unsigned char &color, unsigned char spectrum) const |
| void | correctPixel (Image &source, const int x, const int y) const |
| This functions corercts the radiometric distortion of a chosen pixel in an image. | |
| bool | isActive () const |
| The function returns whether the corrector is active. | |
Private Types | |
| enum | { maxRadialOrder = 10, maxColorOrder = 10, max_radius = 140 } |
| radialOrder is the polinomial power (+1) of the radial factor of the color correction. More... | |
Private Member Functions | |
| void | setupRadiusLUT () |
| The following functions are called by the constructor to build the LookUpTables. | |
| void | setupCorrectionLUT () |
| unsigned char | colorDistortionCorrection (const unsigned char radius_i, const unsigned char color, const unsigned char channel) const |
| Corrects the radiometric distortion of a single channel of a given pixel, based on the distance from the image center. | |
Private Attributes | |
| int | radialOrder |
| int | colorOrder |
| unsigned char | radiusLUT [cameraResolutionHeight_ERS7][cameraResolutionWidth_ERS7] |
| unsigned char | colorCorrectionLUT [max_radius][256][3] |
| Radius look up table, used to index the correction table. | |
| bool | active |
| Correction table. | |
| double | radialP [3 *maxRadialOrder] |
| Flag which keeps the corrector status. | |
| double | colorP [3 *maxColorOrder] |
Definition at line 21 of file MSH2004ColorCorrector.h.
|
|
radialOrder is the polinomial power (+1) of the radial factor of the color correction. colorOrder is the polinomial power (+1) of the brighness factor of the color correction. Definition at line 29 of file MSH2004ColorCorrector.h. |
|
|
Default constructor.
Definition at line 15 of file MSH2004ColorCorrector.cpp. References InFile::exists(), getLocation(), setupCorrectionLUT(), and setupRadiusLUT(). |
Here is the call graph for this function:

|
|
The following functions are called by the constructor to build the LookUpTables.
Definition at line 153 of file MSH2004ColorCorrector.cpp. References cameraResolutionHeight_ERS7, cameraResolutionWidth_ERS7, centralPointX, centralPointY, and radiusLUT. Referenced by MSH2004ColorCorrector(). |
|
|
Definition at line 197 of file MSH2004ColorCorrector.cpp. References colorCorrectionLUT, colorDistortionCorrection(), and max_radius. Referenced by MSH2004ColorCorrector(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Corrects the radiometric distortion of a single channel of a given pixel, based on the distance from the image center.
Definition at line 166 of file MSH2004ColorCorrector.cpp. Referenced by setupCorrectionLUT(). |
|
||||||||||||||||||||||||
|
This functions returns a radiometric distortion corrected pixel.
Definition at line 67 of file MSH2004ColorCorrector.h. References colorCorrectionLUT, radiusLUT, U(), and Y. Referenced by ColorTableTSL::generateColorClassImage(), and GT2004EdgeDetection::getColor(). |
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 75 of file MSH2004ColorCorrector.h. References colorCorrectionLUT, and radiusLUT. |
|
||||||||||||||||
|
This functions corercts the radiometric distortion of a chosen pixel in an image.
Definition at line 87 of file MSH2004ColorCorrector.h. References colorCorrectionLUT, Image::image, radiusLUT, U(), and Y. |
Here is the call graph for this function:

|
|
The function returns whether the corrector is active.
Definition at line 103 of file MSH2004ColorCorrector.h. |
|
|
Definition at line 30 of file MSH2004ColorCorrector.h. |
|
|
Definition at line 31 of file MSH2004ColorCorrector.h. |
|
|
Definition at line 33 of file MSH2004ColorCorrector.h. Referenced by correctPixel(), getCorrectedColor(), getCorrectedPixel(), and setupRadiusLUT(). |
|
|
Radius look up table, used to index the correction table.
Definition at line 34 of file MSH2004ColorCorrector.h. Referenced by correctPixel(), getCorrectedColor(), getCorrectedPixel(), and setupCorrectionLUT(). |
|
|
Correction table.
Definition at line 35 of file MSH2004ColorCorrector.h. |
|
|
Flag which keeps the corrector status.
Definition at line 37 of file MSH2004ColorCorrector.h. |
|
|
Definition at line 38 of file MSH2004ColorCorrector.h. |
1.3.6