#include <peak_icv/pipeline/detail/peak_icv_color_matrix_transformation_module.hpp>

Public Member Functions | |
| ColorMatrixTransformationModule () | |
| Creates an instance of class ColorMatrixTransformationModule with the default color correction matrix, saturation value and chromatic adaption value. | |
| ~ColorMatrixTransformationModule () override | |
| ColorMatrixTransformationModule (const ColorMatrixTransformationModule &other)=delete | |
| Copy constructor for class ColorMatrixTransformation is deleted. | |
| ColorMatrixTransformationModule (ColorMatrixTransformationModule &&other) noexcept | |
| ColorMatrixTransformationModule & | operator= (const ColorMatrixTransformationModule &other)=delete |
| Copy assignment for class ColorMatrixTransformation is deleted. | |
| ColorMatrixTransformationModule & | operator= (ColorMatrixTransformationModule &&other) noexcept |
| void | Serialize (peak::common::serialization::IArchive &archive) const override |
| Serializes the object's internal state into the provided archive. | |
| void | Deserialize (const peak::common::serialization::IArchive &archive) override |
| Restores the object's state from the provided archive. | |
| void | SetEnabled (bool enabled) override |
| Enables or disables the module. When disabled, Process returns the input image unchanged. | |
| bool | IsEnabled () const override |
| Gets whether this module is currently enabled. | |
| const char * | GetType () const override |
| Returns the type of the module for serialization purposes. | |
| void | ResetToDefault () override |
| Resets the ColorCorrectionMatrix to the default, the chromatic adaption color space and algorithm to the default and the saturation value to the default. | |
| void | SetMatrix (const ColorCorrectionMatrix &matrix) |
| Sets the ColorCorrectionMatrix. | |
| ColorCorrectionMatrix | GetMatrix () const |
| Gets the current ColorCorrectionMatrix. | |
| void | SetSaturation (float saturation) |
| Sets the saturation value. | |
| float | GetSaturation () const |
| Gets the current saturation value. | |
| peak::common::IntervalF | GetSaturationRange () const |
| Gets the valid range for saturation. | |
| peak::icv::Image | Process (const peak::icv::Image &input) const |
| Processes the input image and returns a color corrected and/or saturated output image. | |
| peak::common::Any | Process (const peak::common::Any &input) const override |
| Processes the input image and returns a color corrected and/or saturated output image. | |
| void | SetAutoFeatureModule (const std::shared_ptr< modules::IAutoFeature > &module) |
| Sets the auto feature module that should take the color correction matrix into account for automatic white balancing. | |
| ColorCorrectionMatrix | GetEffectiveMatrix () const |
| Returns the final effective matrix calculated by concatenating all enabled transformations (e.g., Chromatic Adaptation, Color Correction, and Saturation). | |
| void | SetChromaticAdaptionAlgorithm (ChromaticAdaptionAlgorithm algorithm) |
| Sets the algorithm used to calculate the chromatic adaptation transformation. | |
| ChromaticAdaptionAlgorithm | GetChromaticAdaptionAlgorithm () const |
| Returns the current algorithm used for chromatic adaptation. | |
| void | SetTargetColorSpace (ColorSpace colorSpace) |
| Sets the target color space for the chromatic adaptation transformation. | |
| ColorSpace | GetTargetColorSpace () const |
| Returns the target color space used for chromatic adaptation. | |
| void | SetColorTemperature (uint32_t temperature) |
| Sets the source color temperature in Kelvin to be used for chromatic adaptation. | |
| uint32_t | GetColorTemperature () const |
| Returns the currently configured source color temperature in Kelvin. | |
| peak::common::RangeU | GetColorTemperatureRange () const |
| Returns the valid range of values for color temperature. | |
| void | ResetColorTemperature () const |
| Resets the color temperature to its default, uninitialized state. | |
| bool | HasColorTemperature () const |
| Checks if a specific color temperature has been explicitly set. | |
| void | SetChromaticAdaptionEnabled (bool enabled) |
| Enables or disables the chromatic adaptation feature. | |
| bool | IsChromaticAdaptionEnabled () const |
| Checks if the chromatic adaptation feature is enabled. | |
| void | SetSaturationEnabled (bool enabled) |
| Enables or disables the saturation adjustment feature. | |
| bool | IsSaturationEnabled () const |
| Checks if the saturation adjustment feature is enabled. | |
| void | SetColorCorrectionEnabled (bool enabled) |
| Enables or disables the static color correction matrix feature. | |
| bool | IsColorCorrectionEnabled () const |
| Checks if the static color correction matrix feature is enabled. | |
| void | ResetChromaticAdaption () |
| Resets all chromatic adaptation settings (temperature, algorithm, color space) to their default values. | |
Color matrix transformation is an image pipeline module that applies a ColorCorrectionMatrix to an image.
Provides the features features::ColorCorrectionFeature, features::SaturationFeature and features::ChromaticAdaptionFeature
Default configuration:
|
inline |
Creates an instance of class ColorMatrixTransformationModule with the default color correction matrix, saturation value and chromatic adaption value.
|
inlineoverride |
|
delete |
Copy constructor for class ColorMatrixTransformation is deleted.
|
inlinenoexcept |
|
inlineoverridevirtual |
Restores the object's state from the provided archive.
This function reads and applies all necessary parameters from the given archive to reconstruct the internal state of the object. It ensures that the object is restored to a valid and consistent state.
| archive | The source archive containing the serialized parameters. |
| CorruptedException | If Archive is malformed, misses keys or the values are invalid |
| NotSupportedException | If the 'Version' entry indicates an unsupported version. |
Implements ISerializable.
|
inline |
Returns the current algorithm used for chromatic adaptation.
|
inline |
Returns the currently configured source color temperature in Kelvin.
|
inline |
Returns the valid range of values for color temperature.
|
inline |
Returns the final effective matrix calculated by concatenating all enabled transformations (e.g., Chromatic Adaptation, Color Correction, and Saturation).
|
inline |
Gets the current ColorCorrectionMatrix.
|
inline |
|
inline |
|
inline |
Returns the target color space used for chromatic adaptation.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
|
inline |
Checks if a specific color temperature has been explicitly set.
|
inline |
Checks if the chromatic adaptation feature is enabled.
|
inline |
Checks if the static color correction matrix feature is enabled.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false. When disabled, Process returns the input image unchanged.Implements IModule.
|
inline |
Checks if the saturation adjustment feature is enabled.
|
inlinenoexcept |
|
delete |
Copy assignment for class ColorMatrixTransformation is deleted.
|
inlineoverridevirtual |
Processes the input image and returns a color corrected and/or saturated output image.
Images with other formats are passed through unmodified.
| input | The input image to be processed. |
| peak::common::InvalidCastException | If the input cast to peak::icv::Image failed. |
Implements IModule.
|
inline |
Processes the input image and returns a color corrected and/or saturated output image.
Images with other formats are passed through unmodified.
| input | The input image to be processed. |
|
inline |
Resets all chromatic adaptation settings (temperature, algorithm, color space) to their default values.
|
inline |
Resets the color temperature to its default, uninitialized state.
|
inlineoverridevirtual |
Resets the ColorCorrectionMatrix to the default, the chromatic adaption color space and algorithm to the default and the saturation value to the default.
Implements IModule.
|
inlineoverridevirtual |
Serializes the object's internal state into the provided archive.
This function populates the given archive with all parameters required to fully represent the current state of the object. It ensures that the object can be reconstructed or transmitted accurately by saving all relevant data members in a consistent and structured format.
| archive | The target archive that will store the serialized parameters. |
Implements ISerializable.
|
inline |
Sets the auto feature module that should take the color correction matrix into account for automatic white balancing.
|
inline |
Sets the algorithm used to calculate the chromatic adaptation transformation.
| algorithm | The ChromaticAdaptionAlgorithm to apply. |
|
inline |
Enables or disables the chromatic adaptation feature.
| enabled | True to enable chromatic adaptation, false to disable it. |
|
inline |
Enables or disables the static color correction matrix feature.
| enabled | True to enable color correction, false to disable it. |
|
inline |
Sets the source color temperature in Kelvin to be used for chromatic adaptation.
| temperature | The color temperature value in Kelvin. |
|
inlineoverridevirtual |
Enables or disables the module. When disabled, Process returns the input image unchanged.
| enabled | Set to true to enable, or false to disable. |
Implements IModule.
|
inline |
|
inline |
Sets the saturation value.
| saturation | The saturation value. |
| OutOfRangeException | If saturation is outside the valid range (see GetSaturationRange). |
|
inline |
Enables or disables the saturation adjustment feature.
| enabled | True to enable saturation adjustment, false to disable it. |
|
inline |
Sets the target color space for the chromatic adaptation transformation.
| colorSpace | The target ColorSpace. |