![]() |
IDS peak ICV v1.2.0
|

Public Member Functions | |
| None | __init__ (self) |
| Creates an instance of class ModuleBase. | |
| int | version (self) |
| Return the module version. | |
| bool | enabled (self) |
| Get whether this module is enabled. | |
| None | enabled (self, bool value) |
| Enable or disable the module. | |
| None | serialize (self, IArchive archive) |
| Serializes the object's internal state into the provided archive. | |
| None | deserialize (self, IArchive archive) |
| Restores the object's state from the provided archive. | |
Data Fields | |
| enabled | |
| version | |
Protected Member Functions | |
| None | _validate_version (self, IArchive archive) |
| None | _raise_corrupted_archive_key_missing (self, str missing_archive_key) |
| None | _raise_version_is_not_supported (self, str actual_version, str expected_version) |
Protected Attributes | |
| bool | _enabled = True |
Base class for all pipeline modules.
Definition at line 8 of file module_base.py.
| None __init__ | ( | self | ) |
Creates an instance of class ModuleBase.
Reimplemented in ColorMatrixTransformationModule, DebayerModule, DownsamplingModule, GainModule, HotpixelCorrectionModule, MonoConversionModule, PixelFormatConversionModule, SharpeningModule, ToneCurveCorrectionModule, TransformationModule, and UnpackModule.
Definition at line 17 of file module_base.py.
|
protected |
Definition at line 112 of file module_base.py.
|
protected |
Definition at line 115 of file module_base.py.
|
protected |
Definition at line 105 of file module_base.py.
| None deserialize | ( | self, | |
| IArchive | archive ) |
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. |
Reimplemented from ISerializable.
Reimplemented in ColorMatrixTransformationModule, DebayerModule, DownsamplingModule, GainModule, HotpixelCorrectionModule, PixelFormatConversionModule, SharpeningModule, ToneCurveCorrectionModule, TransformationModule, and UnpackModule.
Definition at line 85 of file module_base.py.
| bool enabled | ( | self | ) |
Get whether this module is enabled.
When disabled, process returns the input image unchanged.
Reimplemented from IModule.
Reimplemented in ColorMatrixTransformationModule, ColorMatrixTransformationModule, HotpixelCorrectionModule, HotpixelCorrectionModule, ToneCurveCorrectionModule, ToneCurveCorrectionModule, TransformationModule, TransformationModule, UnpackModule, and UnpackModule.
Definition at line 40 of file module_base.py.
| None enabled | ( | self, | |
| bool | value ) |
Enable or disable the module.
When disabled, process returns the input image unchanged.
| value | True to enable, False to disable. |
Reimplemented from IModule.
Reimplemented in ColorMatrixTransformationModule, ColorMatrixTransformationModule, HotpixelCorrectionModule, HotpixelCorrectionModule, ToneCurveCorrectionModule, ToneCurveCorrectionModule, TransformationModule, TransformationModule, UnpackModule, and UnpackModule.
Definition at line 54 of file module_base.py.
| None serialize | ( | self, | |
| IArchive | archive ) |
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.
Reimplemented from ISerializable.
Reimplemented in ColorMatrixTransformationModule, DebayerModule, DownsamplingModule, GainModule, HotpixelCorrectionModule, PixelFormatConversionModule, SharpeningModule, ToneCurveCorrectionModule, TransformationModule, and UnpackModule.
Definition at line 69 of file module_base.py.
| int version | ( | self | ) |
Return the module version.
Definition at line 28 of file module_base.py.
|
protected |
Definition at line 24 of file module_base.py.
| enabled |
Reimplemented in ColorMatrixTransformationModule, ColorMatrixTransformationModule, HotpixelCorrectionModule, HotpixelCorrectionModule, ToneCurveCorrectionModule, ToneCurveCorrectionModule, TransformationModule, TransformationModule, UnpackModule, and UnpackModule.
Definition at line 82 of file module_base.py.
| version |
Definition at line 83 of file module_base.py.