#include <peak_icv/pipeline/features/peak_icv_chromatic_adaption_feature.hpp>

Public Member Functions | |
| ChromaticAdaptionFeature (detail::ColorMatrixTransformationModule &module) | |
| Creates a ChromaticAdaptionFeature for an existing color matrix transformation module. | |
| void | SetEnabled (bool enabled) override |
| Enables or disables the feature. | |
| bool | IsEnabled () const override |
| Gets whether this feature is currently enabled. | |
| void | ResetToDefault () override |
| Resets the chromatic adaption configuration to the default values. | |
| void | SetTargetColorSpace (ColorSpace colorSpace) |
| Sets the target color space. | |
| ColorSpace | GetTargetColorSpace () const |
| Retrieves the current target color space. | |
| void | SetAlgorithm (ChromaticAdaptionAlgorithm algorithm) |
| Sets the algorithm used for chromatic adaption. | |
| ChromaticAdaptionAlgorithm | GetAlgorithm () const |
| Retrieves the current chromatic adaption algorithm. | |
| void | SetColorTemperature (uint32_t kelvin) |
| Sets the color temperature of the light source. If no color temperature is explicitly set the chromatic adaption won't be applied. | |
| uint32_t | GetColorTemperature () const |
| Retrieves the current color temperature. | |
| bool | HasColorTemperature () const |
| Checks whether a color temperature has been set. | |
| peak::common::RangeU | GetColorTemperatureRange () const |
| Returns the allowed temperature range for the current combination of color space and algorithm. | |
Adjusts to changes in lighting conditions to maintain consistent color perception despite variations in light sources.
In industrial imaging, white balance can fail due to the lack of a neutral reference in the image, such as when the scene contains no gray or white areas, or when the colors are unevenly distributed (as in images dominated by a single color). In these cases, traditional white balance algorithms, like the gray world method, may fail to produce accurate color corrections.
Chromatic adaptation provides an alternative solution by adjusting the image’s colors based on the known or estimated correlated color temperature of the light source.
Definition at line 51 of file peak_icv_chromatic_adaption_feature.hpp.
|
inlineexplicit |
Creates a ChromaticAdaptionFeature for an existing color matrix transformation module.
| module | Reference to the underlying detail::ColorMatrixTransformationModule. |
Definition at line 166 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Retrieves the current chromatic adaption algorithm.
Definition at line 200 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Retrieves the current color temperature.
| NotPossibleException | If the color temperature has not been set (it has no default value). |
Definition at line 210 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Returns the allowed temperature range for the current combination of color space and algorithm.
Definition at line 220 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Retrieves the current target color space.
Definition at line 190 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Checks whether a color temperature has been set.
Definition at line 215 of file peak_icv_chromatic_adaption_feature.hpp.
|
inlineoverridevirtual |
Gets whether this feature is currently enabled.
true if enabled; otherwise false.Implements IFeature.
Definition at line 175 of file peak_icv_chromatic_adaption_feature.hpp.
|
inlineoverridevirtual |
Resets the chromatic adaption configuration to the default values.
Implements IFeature.
Definition at line 180 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Sets the algorithm used for chromatic adaption.
The algorithms use a CAT (chromatic adaptation transform) matrix.
| algorithm | The chromatic adaption algorithm to set. |
Definition at line 195 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Sets the color temperature of the light source. If no color temperature is explicitly set the chromatic adaption won't be applied.
| kelvin | The color temperature in Kelvin to set. Must be within the allowed GetColorTemperatureRange. |
Definition at line 205 of file peak_icv_chromatic_adaption_feature.hpp.
|
inlineoverridevirtual |
Enables or disables the feature.
| enabled | Set to true to enable, or false to disable. |
Implements IFeature.
Definition at line 170 of file peak_icv_chromatic_adaption_feature.hpp.
|
inline |
Sets the target color space.
A color space is a specific implementation of a color model, mapping colors to a defined range of values (e.g., standard primaries, white point, and gamma).
| colorSpace | The color space to set. |
Definition at line 185 of file peak_icv_chromatic_adaption_feature.hpp.