Color matrix transformation is an image pipeline module that applies a Types.ColorCorrectionMatrix to an image.
Provides the features ColorCorrectionFeature, SaturationFeature and ChromaticAdaptionFeature
Default values:
- Since
- IDSImaging.Peak.ICV 1.3
◆ ColorMatrixTransformationModule()
◆ Deserialize()
| override void Deserialize |
( |
IArchive | archive | ) |
|
|
inlinevirtual |
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.
- Note
- This function requires that the archive contains all expected fields as produced by a corresponding Serialize call.
- Parameters
-
| archive | The source archive containing the serialized parameters. |
- Exceptions
-
Reimplemented from ModuleBase.
◆ Dispose()
Releases all resources used by this class.
◆ HasColorTemperature()
| bool HasColorTemperature |
( |
| ) |
|
|
inline |
Returns whether a color temperature has been set.
◆ Process() [1/2]
Processes the input image and returns a color corrected and/or saturated output image.
- Note
- Supported pixel formats: RGB8, RGB10, RGB12, BGR8, BGR10, BGR12, RGBa8, RGBa10, RGBa12, BGRa8, BGRa10, BGRa12. Images with other formats are passed through unmodified.
- Note
- This operation disregards any specified image regions and processes the entire image.
- Parameters
-
| inputImage | The input image to be processed. |
- Returns
- The input image after in-place color correction and/or saturation has been applied.
◆ Process() [2/2]
| override object Process |
( |
object | input | ) |
|
|
inlinevirtual |
Processes the input image and returns a color corrected and/or saturated output image.
- Note
- Supported pixel formats: RGB8, RGB10, RGB12, BGR8, BGR10, BGR12, RGBa8, RGBa10, RGBa12, BGRa8, BGRa10, BGRa12. Images with other formats are passed through unmodified.
- Note
- This operation disregards any specified image regions and processes the entire image.
- Parameters
-
| input | The input image to be processed. |
- Returns
- The input image after in-place color correction and/or saturation has been applied.
Reimplemented from ModuleBase.
◆ ResetToDefault()
| override void ResetToDefault |
( |
| ) |
|
|
inlinevirtual |
Resets all parameters to their default values.
Default values:
- Note
- The enabled state does not change when calling this function.
Reimplemented from ModuleBase.
◆ Serialize()
| override void Serialize |
( |
IArchive | archive | ) |
|
|
inlinevirtual |
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.
- Parameters
-
| archive | The target archive that will store the serialized parameters. |
Reimplemented from ModuleBase.
◆ SetAutoFeatureModule()
Sets the auto feature module that should take the color correction matrix into account for automatic white balancing.
◆ ChromaticAdaptionAlgorithm
The current algorithm used for chromatic adaptation.
◆ ColorTemperature
The current source color temperature in Kelvin to be used for chromatic adaptation.
The initial color temperature is null. In this case, chromatic adaption does not apply.
- Exceptions
-
◆ ColorTemperatureRange
Gets the valid range for color temperature.
◆ IsEnabled
Gets or sets whether the module is enabled.
Implements IModule.
◆ Matrix
◆ Saturation
The current saturation value.
- Exceptions
-
◆ SaturationRange
Gets the valid range for saturation.
◆ TargetColorSpace
The current target color space for the chromatic adaptation transformation.
◆ TypeId
The unique type identifier for this module implementation.This should be a unique string identifying the specific implementation of the module.
Implements IModule.
◆ Version