![]() |
IDS peak IPL v1.16.1
|
The Factors of the Color Correction Matrix. More...
#include <peak_ipl/types/peak_ipl_color_correction_factors.hpp>
Public Member Functions | |
| constexpr | ColorCorrectionFactors (float facRR, float facGR, float facBR, float facRG, float facGG, float facBG, float facRB, float facGB, float facBB) |
| Constructor for a new ColorCorrectionFactors instance. | |
| constexpr | ColorCorrectionFactors (const std::array< float, 9 > &factors) |
| Constructor for a new ColorCorrectionFactors instance. | |
| constexpr | ColorCorrectionFactors ()=default |
| Constructor for a new ColorCorrectionFactors instance. | |
| ~ColorCorrectionFactors ()=default | |
| Destructor for the ColorCorrectionFactors instance. | |
| ColorCorrectionFactors (ColorCorrectionFactors &&o)=default | |
| Copy Constructor for a new ColorCorrectionFactors instance. | |
| ColorCorrectionFactors (const ColorCorrectionFactors &o)=default | |
| Move constructor for ColorCorrectionFactors instance. | |
| ColorCorrectionFactors & | operator= (const ColorCorrectionFactors &o)=default |
| Copy assigment for ColorCorrectionFactors instance. | |
| ColorCorrectionFactors & | operator= (ColorCorrectionFactors &&o)=default |
| Move assignment for ColorCorrectionFactors instance. | |
| constexpr bool | operator== (const ColorCorrectionFactors &other) const |
| Compare ColorCorrectionFactors. | |
| constexpr std::array< float, 9 > | AsArray () const |
| Returns the ColorCorrectionFactors as an array. | |
Static Public Member Functions | |
| static constexpr ColorCorrectionFactors | Identity () |
| Create an identity matrix. | |
Public Attributes | |
| float | factorRR {} |
| Red-Red Factor. | |
| float | factorGR {} |
| Green-Red Factor. | |
| float | factorBR {} |
| Blue-Red Factor. | |
| float | factorRG {} |
| Red-Green Factor. | |
| float | factorGG {} |
| Green-Green Factor. | |
| float | factorBG {} |
| Blue-Green Factor. | |
| float | factorRB {} |
| Red-Blue Factor. | |
| float | factorGB {} |
| Green-Blue Factor. | |
| float | factorBB {} |
| Blue-Blue Factor. | |
The Factors of the Color Correction Matrix.
|
inlineconstexpr |
Constructor for a new ColorCorrectionFactors instance.
Creates a new ColorCorrectionFactors instance.
The matrix is row-wise sorted:
| RR | GR | BR |
| RG | GG | BG |
| RB | GB | BB |
| [in] | facRR | Red-Red Factor. |
| [in] | facGR | Green-Red Factor. |
| [in] | facBR | Blue-Red Factor. |
| [in] | facRG | Red-Green Factor. |
| [in] | facGG | Green-Green Factor. |
| [in] | facBG | Blue-Green Factor. |
| [in] | facRB | Red-Blue Factor. |
| [in] | facGB | Green-Blue Factor. |
| [in] | facBB | Blue-Blue Factor. |
|
inlineexplicitconstexpr |
Constructor for a new ColorCorrectionFactors instance.
Creates a new ColorCorrectionFactors instance with an array. The values are expected left to right and top to bottom.
The matrix is row-wise sorted:
| RR (0) | GR (1) | BR (2) |
| RG (3) | GG (4) | BG (5) |
| RB (6) | GB (7) | BB (8) |
| [in] | factors | The factors. |
|
constexprdefault |
Constructor for a new ColorCorrectionFactors instance.
Creates a new ColorCorrectionFactors instance. The Factors are initialized to zero.
|
default |
Destructor for the ColorCorrectionFactors instance.
Destroys a ColorCorrectionFactors instance.
|
default |
Copy Constructor for a new ColorCorrectionFactors instance.
Creates a new ColorCorrectionFactors instance. The Factors are copied from other
| [in] | o | The other instance to copy the factors from. |
|
default |
Move constructor for ColorCorrectionFactors instance.
Moves the instance from other to this. Afterward other is invalid.
| [in] | o | The other instance to move the factors from. |
|
inlineconstexpr |
|
inlinestaticconstexpr |
Create an identity matrix.
This will return a ColorCorrectionFactors matrix with diagonal all 1 and all other 0.
|
default |
Move assignment for ColorCorrectionFactors instance.
Moves the factors from other to this.
| [in] | o | The other instance to move the factors from. |
|
default |
Copy assigment for ColorCorrectionFactors instance.
Copies the Factors from other to this instance.
| [in] | o | The other instance to copy the factors from. |
|
inlineconstexpr |
Compare ColorCorrectionFactors.
Compares the factors from other to this instance
| [in] | other | The other instance to compare. |
| float peak::ipl::ColorCorrectionFactors::factorBB {} |
Blue-Blue Factor.
| float peak::ipl::ColorCorrectionFactors::factorBG {} |
Blue-Green Factor.
| float peak::ipl::ColorCorrectionFactors::factorBR {} |
Blue-Red Factor.
| float peak::ipl::ColorCorrectionFactors::factorGB {} |
Green-Blue Factor.
| float peak::ipl::ColorCorrectionFactors::factorGG {} |
Green-Green Factor.
| float peak::ipl::ColorCorrectionFactors::factorGR {} |
Green-Red Factor.
| float peak::ipl::ColorCorrectionFactors::factorRB {} |
Red-Blue Factor.
| float peak::ipl::ColorCorrectionFactors::factorRG {} |
Red-Green Factor.
| float peak::ipl::ColorCorrectionFactors::factorRR {} |
Red-Red Factor.