Public Member Functions | |
| PixelFormatConversionModule () | |
| Creates an instance of class PixelFormatConversionModule. | |
| void | Dispose () |
| Releases all resources used by this class. | |
| override Image | Process (Image inputImage) |
| Converts the input image to the configured output pixel format. | |
| void | ReleaseBuffers () |
| Frees unused internal buffers. | |
| override void | ResetToDefault () |
| Resets the output pixel format to its default value ( PixelFormat.RGB8). | |
| 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. | |
| 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. | |
Static Public Attributes | |
| const PixelFormat | DefaultOutputPixelFormat = PixelFormat.RGB8 |
| The default output pixel format. | |
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. | |
| PixelFormat | OutputPixelFormat = DefaultOutputPixelFormat [get, set] |
| The desired output pixel format. | |
| int | Version = 1 [get] |
| The module version. | |
| virtual bool | IsEnabled = true [get, set] |
| Get whether this module is enabled. | |
Pixel format conversion module that transforms images to a specified output pixel format.
The pixel format conversion module allows explicit control over the output pixel format.
Default pixel format: IDSImaging.Peak.Common.Types.PixelFormat.RGB8
Definition at line 21 of file PixelFormatConversionModule.cs.
|
inline |
Creates an instance of class PixelFormatConversionModule.
Definition at line 34 of file PixelFormatConversionModule.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. |
Reimplemented from ModuleBase.
Definition at line 172 of file PixelFormatConversionModule.cs.
|
inline |
Releases all resources used by this class.
Definition at line 53 of file PixelFormatConversionModule.cs.
|
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.
Definition at line 78 of file ModuleBase.cs.
Converts the input image to the configured output pixel format.
| inputImage | The input image to convert. |
Definition at line 72 of file PixelFormatConversionModule.cs.
|
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.
Definition at line 112 of file PixelFormatConversionModule.cs.
|
inlinevirtual |
Resets the output pixel format to its default value ( PixelFormat.RGB8).
Reimplemented from ModuleBase.
Definition at line 126 of file PixelFormatConversionModule.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 142 of file PixelFormatConversionModule.cs.
|
static |
The default output pixel format.
Definition at line 26 of file PixelFormatConversionModule.cs.
|
getsetinherited |
Get whether this module is enabled.
When disabled, Process returns the input image unchanged.
Implements IModule.
Definition at line 28 of file ModuleBase.cs.
|
getset |
The desired output pixel format.
Definition at line 48 of file PixelFormatConversionModule.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 43 of file PixelFormatConversionModule.cs.
|
getinherited |
The module version.
Definition at line 20 of file ModuleBase.cs.