
Data Structures | |
| class | Handle |
Public Member Functions | |
| GainModule () | |
| Creates an instance of class GainModule. | |
| void | Dispose () |
| Releases all resources used by this class. | |
| override void | Serialize (IArchive archive) |
| Serializes the object's internal state into the provided archive. | |
| override void | Deserialize (IArchive archive) |
| Restores the object's state from the provided archive. | |
| override object | Process (object input) |
| Applies the gains to the input image in place and returns a reference to the modified image. | |
| override void | ResetToDefault () |
| Resets all parameters to their default values. | |
| override Image | Process (Image input) |
| Applies the gains to the input image in place and returns a reference to the modified image. | |
Properties | |
| IntervalF | Range [get] |
| Gets the valid range for the master or color gains. | |
| override string | TypeId [get] |
| The unique type identifier for this module implementation.This should be a unique string identifying the specific implementation of the module. | |
| override bool | IsEnabled [get, set] |
| Gets or sets whether the module is enabled. | |
| float | Master [get, set] |
| The current master gain value. | |
| float | Red [get, set] |
| The current red gain value. | |
| float | Green [get, set] |
| The current green gain value. | |
| float | Blue [get, set] |
| The current blue gain value. | |
| int | Version = 1 [get] |
| The module version. | |
Image pipeline module for applying gain to the image.
A gain module consists of a master gain applied to all channels, along with individual gain values for the red, green, and blue channels.
Definition at line 20 of file GainModule.cs.
|
inline |
Creates an instance of class GainModule.
Definition at line 38 of file GainModule.cs.
|
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.
| archive | The source archive containing the serialized parameters. |
| IcvCorruptedException | The archive is malformed, misses keys or the values are invalid. |
| IcvNotSupportedException | The Version entry indicates an unsupported version. |
| IcvOutOfRangeException | The values are outside of the valid range. |
Reimplemented from ModuleBase.
Definition at line 139 of file GainModule.cs.
|
inline |
Releases all resources used by this class.
Definition at line 71 of file GainModule.cs.
Applies the gains to the input image in place and returns a reference to the modified image.
The correction is performed based on the current configuration of the module. The operation modifies the input image directly and does not create a copy.
| input | The input image to be processed and corrected. |
| IcvNotSupportedException | Thrown when input has any other than the supported pixel formats. |
Definition at line 329 of file GainModule.cs.
|
inlinevirtual |
Applies the gains to the input image in place and returns a reference to the modified image.
The correction is performed based on the current configuration of the module. The operation modifies the input image directly and does not create a copy.
| input | The input image to be processed and corrected. |
| IcvNotSupportedException | The input is not an Image or has any other than the supported pixel formats. |
Reimplemented from ModuleBase.
Definition at line 261 of file GainModule.cs.
|
inlinevirtual |
Resets all parameters to their default values.
Default values:
Reimplemented from ModuleBase.
Definition at line 292 of file GainModule.cs.
|
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.
| archive | The target archive that will store the serialized parameters. |
Reimplemented from ModuleBase.
Definition at line 102 of file GainModule.cs.
|
getset |
The current blue gain value.
Sets the color gain for the blue channel. The valid range for the gain value can be obtained using the Range function.
| IcvOutOfRangeException | The value is outside the valid range. |
Implements IGain.
Definition at line 222 of file GainModule.cs.
|
getset |
The current green gain value.
Sets the color gain for the green channel. The valid range for the gain value can be obtained using the Range function.
| IcvOutOfRangeException | The value is outside the valid range. |
Implements IGain.
Definition at line 201 of file GainModule.cs.
|
getset |
Gets or sets whether the module is enabled.
Implements IModule.
Definition at line 81 of file GainModule.cs.
|
getset |
The current master gain value.
Sets the overall master gain. The valid range for the gain value can be obtained using the Range function.
| IcvOutOfRangeException | The value is outside the valid range. |
Implements IGain.
Definition at line 159 of file GainModule.cs.
|
getset |
The current red gain value.
Sets the color gain for the red channel. The valid range for the gain value can be obtained using the Range function.
| IcvOutOfRangeException | The value is outside the valid range. |
Implements IGain.
Definition at line 180 of file GainModule.cs.
|
get |
The unique type identifier for this module implementation.This should be a unique string identifying the specific implementation of the module.
Implements IModule.
Definition at line 78 of file GainModule.cs.
|
getinherited |
The module version.
Definition at line 20 of file ModuleBase.cs.