![]() |
IDS peak IPL v1.11.0
|
Applies a 3x3 color correction matrix to the data. More...
#include <peak_ipl/algorithm/peak_ipl_color_corrector.hpp>
Public Member Functions | |
| ColorCorrector () | |
| Constructor for a new ColorCorrector instance. | |
| ~ColorCorrector () | |
| Destructor for the ColorCorrector instance. | |
| ColorCorrector (const ColorCorrector &other) | |
| Copy Constructor for a new ColorCorrector instance. | |
| ColorCorrector & | operator= (const ColorCorrector &other) |
| Copy assigment for ColorCorrector instance. | |
| ColorCorrector (ColorCorrector &&other) noexcept | |
| Move constructor for ColorCorrector instance. | |
| ColorCorrector & | operator= (ColorCorrector &&other) noexcept |
| Move assignment for ColorCorrector instance. | |
| void | SetColorCorrectionFactors (peak::ipl::ColorCorrectionFactors colorCorrectorFactors) |
| Sets the values of the color correction matrix. | |
| peak::ipl::ColorCorrectionFactors | ColorCorrectionFactors () |
| Returns the factors of the color correction matrix. | |
| peak::ipl::ColorCorrectionFactors | ColorCorrectionFactors () const |
| Returns the factors of the color correction matrix. | |
| float | Saturation () const |
| Returns the color saturation value. | |
| float | SaturationMin () const |
| Returns the minimum color saturation value. | |
| float | SaturationMax () const |
| Returns the maximum color saturation value. | |
| void | SetSaturation (float saturation) |
| Sets the color saturation value. | |
| bool | IsPixelFormatSupported (PixelFormatName pixelFormatName) const |
| Returns whether the color corrector supports the given pixel format. | |
| void | ProcessInPlace (Image &image) const |
| Corrects the colors of the given image by applying a 3x3 color correction matrix to the data in place that is it will change the input image. | |
| Image | Process (const Image &inputImage) const |
| Corrects the colors of the given image by applying a 3x3 color correction matrix to the data. | |
Applies a 3x3 color correction matrix to the data.
|
inline |
|
inline |
|
inline |
Copy Constructor for a new ColorCorrector instance.
Creates a new ColorCorrector instance.
| [in] | other | The other instance to acquire a reference for. |
|
inlinenoexcept |
Move constructor for ColorCorrector instance.
Moves the instance from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move. |
|
inline |
Returns the factors of the color correction matrix.
|
inline |
Returns the factors of the color correction matrix.
|
inline |
Returns whether the color corrector supports the given pixel format.
| [in] | pixelFormatName | The pixel format of interest. |
|
inlinenoexcept |
Move assignment for ColorCorrector instance.
Moves the instance from other to this. Afterwards other is invalid.
| [in] | other | The other instance to move. |
|
inline |
Copy assigment for ColorCorrector instance.
Acquires a reference from other to this instance. If this instance already has a reference, it will be destroyed.
| [in] | other | The other instance to acquire a reference for. |
Corrects the colors of the given image by applying a 3x3 color correction matrix to the data.
| [in] | inputImage | Image to process. |
| ImageFormatNotSupportedException | image has unsupported pixel format (for example packed pixel format) |
|
inline |
Corrects the colors of the given image by applying a 3x3 color correction matrix to the data in place that is it will change the input image.
| [in] | image | Image to process. |
| ImageFormatNotSupportedException | image has unsupported pixel format (for example packed pixel format) |
|
inline |
Returns the color saturation value.
|
inline |
Returns the maximum color saturation value.
|
inline |
Returns the minimum color saturation value.
|
inline |
Sets the values of the color correction matrix.
The matrix is row-wise sorted:
| RR | GR | BR |
| RG | GG | BG |
| RB | GB | BB |
| [in] | colorCorrectorFactors | The factors of the color correction matrix. |
|
inline |
Sets the color saturation value.
| [in] | saturation | The color saturation value. |