IDS peak ICV v1.3.0
Loading...
Searching...
No Matches
peak_icv_chromatic_adaption_feature.hpp
Go to the documentation of this file.
1
11#pragma once
12
18
19namespace peak
20{
21namespace pipeline
22{
23namespace features
24{
25
52{
53public:
62
66 void SetEnabled(bool enabled) override;
67
71 PEAK_COMMON_NO_DISCARD bool IsEnabled() const override;
72
80 void ResetToDefault() override;
81
92 void SetTargetColorSpace(ColorSpace colorSpace);
93
101 PEAK_COMMON_NO_DISCARD ColorSpace GetTargetColorSpace() const;
102
113
121 PEAK_COMMON_NO_DISCARD ChromaticAdaptionAlgorithm GetAlgorithm() const;
122
131 void SetColorTemperature(uint32_t kelvin);
132
142 PEAK_COMMON_NO_DISCARD uint32_t GetColorTemperature() const;
143
151 PEAK_COMMON_NO_DISCARD bool HasColorTemperature() const;
152
160 PEAK_COMMON_NO_DISCARD peak::common::RangeU GetColorTemperatureRange() const;
161
162private:
164};
165
169
171{
172 m_module.SetChromaticAdaptionEnabled(enabled);
173}
174
176{
177 return m_module.IsChromaticAdaptionEnabled();
178}
179
184
186{
187 m_module.SetTargetColorSpace(colorSpace);
188}
189
194
199
204
206{
207 m_module.SetColorTemperature(kelvin);
208}
209
211{
212 return m_module.GetColorTemperature();
213}
214
216{
217 return m_module.HasColorTemperature();
218}
219
224
225} // namespace features
226} // namespace pipeline
227} // namespace peak
Represents a numeric range with defined boundaries and a fixed increment.
Color matrix transformation is an image pipeline module that applies a ColorCorrectionMatrix to an im...
uint32_t GetColorTemperature() const
Returns the currently configured source color temperature in Kelvin.
void SetChromaticAdaptionEnabled(bool enabled)
Enables or disables the chromatic adaptation feature.
void SetColorTemperature(uint32_t temperature)
Sets the source color temperature in Kelvin to be used for chromatic adaptation.
void ResetChromaticAdaption()
Resets all chromatic adaptation settings (temperature, algorithm, color space) to their default value...
void SetTargetColorSpace(ColorSpace colorSpace)
Sets the target color space for the chromatic adaptation transformation.
bool IsChromaticAdaptionEnabled() const
Checks if the chromatic adaptation feature is enabled.
bool HasColorTemperature() const
Checks if a specific color temperature has been explicitly set.
void SetChromaticAdaptionAlgorithm(ChromaticAdaptionAlgorithm algorithm)
Sets the algorithm used to calculate the chromatic adaptation transformation.
peak::common::RangeU GetColorTemperatureRange() const
Returns the valid range of values for color temperature.
ChromaticAdaptionAlgorithm GetChromaticAdaptionAlgorithm() const
Returns the current algorithm used for chromatic adaptation.
ColorSpace GetTargetColorSpace() const
Returns the target color space used for chromatic adaptation.
Adjusts to changes in lighting conditions to maintain consistent color perception despite variations ...
uint32_t GetColorTemperature() const
Retrieves the current color temperature.
void SetColorTemperature(uint32_t kelvin)
Sets the color temperature of the light source. If no color temperature is explicitly set the chromat...
ChromaticAdaptionAlgorithm GetAlgorithm() const
Retrieves the current chromatic adaption algorithm.
void SetTargetColorSpace(ColorSpace colorSpace)
Sets the target color space.
ChromaticAdaptionFeature(detail::ColorMatrixTransformationModule &module)
Creates a ChromaticAdaptionFeature for an existing color matrix transformation module.
void SetAlgorithm(ChromaticAdaptionAlgorithm algorithm)
Sets the algorithm used for chromatic adaption.
bool HasColorTemperature() const
Checks whether a color temperature has been set.
void SetEnabled(bool enabled) override
Enables or disables the feature.
peak::common::RangeU GetColorTemperatureRange() const
Returns the allowed temperature range for the current combination of color space and algorithm.
void ResetToDefault() override
Resets the chromatic adaption configuration to the default values.
ColorSpace GetTargetColorSpace() const
Retrieves the current target color space.
bool IsEnabled() const override
Gets whether this feature is currently enabled.
Abstract base class for all image processing pipeline features.
ColorSpace
Color spaces supported by the chromatic adaptation feature.
ChromaticAdaptionAlgorithm
Algorithm used for chromatic adaption.