#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:
Definition at line 49 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Creates an instance of class ColorMatrixTransformationModule with the default color correction matrix, saturation value and chromatic adaption value.
Definition at line 424 of file peak_icv_color_matrix_transformation_module.hpp.
|
inlineoverride |
Definition at line 431 of file peak_icv_color_matrix_transformation_module.hpp.
|
delete |
Copy constructor for class ColorMatrixTransformation is deleted.
|
inlinenoexcept |
Definition at line 439 of file peak_icv_color_matrix_transformation_module.hpp.
|
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.
Definition at line 488 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Returns the current algorithm used for chromatic adaptation.
Definition at line 713 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Returns the currently configured source color temperature in Kelvin.
Definition at line 781 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Returns the valid range of values for color temperature.
Definition at line 751 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Returns the final effective matrix calculated by concatenating all enabled transformations (e.g., Chromatic Adaptation, Color Correction, and Saturation).
Definition at line 669 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Gets the current ColorCorrectionMatrix.
Definition at line 556 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Gets the current saturation value.
Definition at line 591 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Gets the valid range for saturation.
Definition at line 600 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Returns the target color space used for chromatic adaptation.
Definition at line 722 of file peak_icv_color_matrix_transformation_module.hpp.
|
inlineoverridevirtual |
Returns the type of the module for serialization purposes.
Implements IModule.
Definition at line 541 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Checks if a specific color temperature has been explicitly set.
Definition at line 771 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Checks if the chromatic adaptation feature is enabled.
Definition at line 807 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Checks if the static color correction matrix feature is enabled.
Definition at line 704 of file peak_icv_color_matrix_transformation_module.hpp.
|
inlineoverridevirtual |
Gets whether this module is currently enabled.
true if enabled; otherwise false. When disabled, Process returns the input image unchanged.Implements IModule.
Definition at line 536 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Checks if the saturation adjustment feature is enabled.
Definition at line 695 of file peak_icv_color_matrix_transformation_module.hpp.
|
inlinenoexcept |
Definition at line 444 of file peak_icv_color_matrix_transformation_module.hpp.
|
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.
Definition at line 615 of file peak_icv_color_matrix_transformation_module.hpp.
|
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. |
Definition at line 610 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Resets all chromatic adaptation settings (temperature, algorithm, color space) to their default values.
Definition at line 816 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Resets the color temperature to its default, uninitialized state.
Definition at line 791 of file peak_icv_color_matrix_transformation_module.hpp.
|
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.
Definition at line 546 of file peak_icv_color_matrix_transformation_module.hpp.
|
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.
Definition at line 461 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Sets the auto feature module that should take the color correction matrix into account for automatic white balancing.
Definition at line 663 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Sets the algorithm used to calculate the chromatic adaptation transformation.
| algorithm | The ChromaticAdaptionAlgorithm to apply. |
Definition at line 732 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Enables or disables the chromatic adaptation feature.
| enabled | True to enable chromatic adaptation, false to disable it. |
Definition at line 799 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Enables or disables the static color correction matrix feature.
| enabled | True to enable color correction, false to disable it. |
Definition at line 687 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Sets the source color temperature in Kelvin to be used for chromatic adaptation.
| temperature | The color temperature value in Kelvin. |
Definition at line 762 of file peak_icv_color_matrix_transformation_module.hpp.
|
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.
Definition at line 527 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Sets the ColorCorrectionMatrix.
| matrix | The ColorCorrectionMatrix. |
Definition at line 567 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Sets the saturation value.
| saturation | The saturation value. |
| OutOfRangeException | If saturation is outside the valid range (see GetSaturationRange). |
Definition at line 580 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Enables or disables the saturation adjustment feature.
| enabled | True to enable saturation adjustment, false to disable it. |
Definition at line 679 of file peak_icv_color_matrix_transformation_module.hpp.
|
inline |
Sets the target color space for the chromatic adaptation transformation.
| colorSpace | The target ColorSpace. |
Definition at line 741 of file peak_icv_color_matrix_transformation_module.hpp.