
Public Member Functions | |
| MonoConversionModule () | |
| Creates an instance of class MonoConversionModule. | |
| void | Dispose () |
| Releases all resources used by this class. | |
| override void | ResetToDefault () |
| Calling this method has no effect. | |
| override Image | Process (Image inputImage) |
| Converts the input image to the configured output pixel format. | |
| void | ReleaseBuffers () |
| Frees unused internal buffers. | |
| virtual void | Serialize (IArchive archive) |
| Serializes the object's internal state into the provided archive. | |
| virtual void | Deserialize (IArchive archive) |
| Restores the object's state from the provided archive. | |
| virtual object | Process (object input) |
| Processes input data and returns the result.This function is called by the pipeline to process a unit of data. | |
Properties | |
| 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. | |
| int | Version = 1 [get] |
| The module version. | |
| virtual bool | IsEnabled = true [get, set] |
| Get whether this module is enabled. | |
Mono conversion is an image pipeline module that converts images to a monochrome format.
The mono conversion module performs a mono (grayscale) conversion on input images. When enabled, it converts the input image to a mono format while preserving the input bit depth. If disabled, the input image is passed through unchanged.
|
inline |
Creates an instance of class MonoConversionModule.
|
inlinevirtualinherited |
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. |
Implements ISerializable.
Reimplemented in ColorMatrixTransformationModule, DebayerModule, DownsamplingModule, GainModule, HotpixelCorrectionModule, PixelFormatConversionModule, SharpeningModule, ToneCurveCorrectionModule, TransformationModule, and UnpackModule.
|
inline |
Releases all resources used by this class.
|
inlinevirtualinherited |
Processes input data and returns the result.This function is called by the pipeline to process a unit of data.
Implements IModule.
Reimplemented in ColorMatrixTransformationModule, DebayerModule, DownsamplingModule, GainModule, HotpixelCorrectionModule, SharpeningModule, ToneCurveCorrectionModule, and TransformationModule.
Converts the input image to the configured output pixel format.
| inputImage | The input image to convert. |
|
inline |
Frees unused internal buffers.
This module uses pre-allocated internal buffers to accelerate conversions. When the image size or pixel format changes, new buffers are allocated, which may cause the internal buffer pool to grow over time. This function can be used to release unused buffers and reduce memory usage.
|
inlinevirtual |
Calling this method has no effect.
Reimplemented from ModuleBase.
|
inlinevirtualinherited |
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 serialized module's internal state. |
Implements ISerializable.
Reimplemented in ColorMatrixTransformationModule, DebayerModule, DownsamplingModule, GainModule, HotpixelCorrectionModule, PixelFormatConversionModule, SharpeningModule, ToneCurveCorrectionModule, TransformationModule, and UnpackModule.
|
getsetinherited |
Get whether this module is enabled.
When disabled, Process returns the input image unchanged.
Implements IModule.
|
get |
The unique type identifier for this module implementation.This should be a unique string identifying the specific implementation of the module.
Implements IModule.
|
getinherited |
The module version.