IDS peak ICV v1.2.0
Loading...
Searching...
No Matches
peak_icv_color_correction_feature.hpp
Go to the documentation of this file.
1
11#pragma once
12
15
16namespace peak
17{
18namespace pipeline
19{
20namespace features
21{
22
66{
67public:
76
80 void SetEnabled(bool enabled) override;
81
85 PEAK_COMMON_NO_DISCARD bool IsEnabled() const override;
86
94 void ResetToDefault() override;
95
103 void SetMatrix(const ColorCorrectionMatrix& matrix);
104
112 PEAK_COMMON_NO_DISCARD ColorCorrectionMatrix GetMatrix() const;
113
114private:
116};
117
121
122inline void ColorCorrectionFeature::SetEnabled(bool enabled)
123{
124 m_module.SetColorCorrectionEnabled(enabled);
125}
126
128{
129 return m_module.IsColorCorrectionEnabled();
130}
131
136
138{
139 m_module.SetMatrix(matrix);
140}
141
143{
144 return m_module.GetMatrix();
145}
146
147} // namespace features
148} // namespace pipeline
149} // namespace peak
Color matrix transformation is an image pipeline module that applies a ColorCorrectionMatrix to an im...
ColorCorrectionMatrix GetMatrix() const
Returns the current ColorCorrectionMatrix.
void SetMatrix(const ColorCorrectionMatrix &matrix)
Sets the ColorCorrectionMatrix.
Color correction applies a 3x3 ColorCorrectionMatrix to the image.
ColorCorrectionMatrix GetMatrix() const
Retrieves the current ColorCorrectionMatrix.
ColorCorrectionFeature(detail::ColorMatrixTransformationModule &module)
Creates a ColorCorrectionFeature for an existing color matrix transformation module.
void SetMatrix(const ColorCorrectionMatrix &matrix)
Sets the ColorCorrectionMatrix.
void SetEnabled(bool enabled) override
Enables or disables the feature.
void ResetToDefault() override
Resets the ColorCorrectionMatrix to the default.
bool IsEnabled() const override
Indicates whether the feature is currently enabled.
Abstract base class for all image processing pipeline features.