
Public Member Functions | |
| UnpackModule () | |
| Creates an instance of class UnpackModule. | |
| void | Dispose () |
| Releases all resources used by this class. | |
| override Image | Process (Image inputImage) |
| Converts a packed pixel format image into an unpacked Bayer or monochrome format. | |
| override void | ResetToDefault () |
| Resets all settings to their defaults. | |
| void | ReleaseBuffers () |
| Frees unused internal buffers. | |
| override void | Serialize (IArchive archive) |
| This function has no effect on the Unpack module. | |
| override void | Deserialize (IArchive archive) |
| This function has no effect on the Unpack module. | |
| 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 uint | DefaultTargetBitDepth = 8 |
| The default target bit depth. | |
| const ProcessingPolicy | DefaultProcessingPolicy = ProcessingPolicy.Fast |
| The default processing policy. | |
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. | |
| uint | TargetBitDepth = DefaultTargetBitDepth [get, set] |
| The target bit depth used during image processing. | |
| ProcessingPolicy | ProcessingPolicy = DefaultProcessingPolicy [get, set] |
| The current processing policy. | |
| override bool | IsEnabled [get, set] |
Gets a value indicating whether the unpack module is enabled. This property always returns true. | |
| int | Version = 1 [get] |
| The module version. | |
Unpack is an image pipeline module that converts packed pixel formats into corresponding unpacked Bayer or mono formats.
The unpack module is always enabled and cannot be disabled. It converts input images with packed pixel formats into their corresponding unpacked Bayer or monochrome formats. The output bit depth depends on the applied processing policy and the specified target bit depth.
Default values:
Definition at line 33 of file UnpackModule.cs.
|
inline |
Creates an instance of class UnpackModule.
Definition at line 50 of file UnpackModule.cs.
|
inlinevirtual |
This function has no effect on the Unpack module.
Reimplemented from ModuleBase.
Definition at line 222 of file UnpackModule.cs.
|
inline |
Releases all resources used by this class.
Definition at line 116 of file UnpackModule.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 a packed pixel format image into an unpacked Bayer or monochrome format.
This function unpacks the input image from a packed format to its corresponding unpacked Bayer or monochrome format.
| inputImage | The packed input image to unpack. |
Definition at line 141 of file UnpackModule.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 204 of file UnpackModule.cs.
|
inlinevirtual |
Resets all settings to their defaults.
Default values:
Reimplemented from ModuleBase.
Definition at line 182 of file UnpackModule.cs.
|
inlinevirtual |
This function has no effect on the Unpack module.
Reimplemented from ModuleBase.
Definition at line 213 of file UnpackModule.cs.
|
static |
The default processing policy.
Definition at line 43 of file UnpackModule.cs.
|
static |
The default target bit depth.
Definition at line 38 of file UnpackModule.cs.
|
getset |
Gets a value indicating whether the unpack module is enabled. This property always returns true.
This property cannot be changed.
The module remains enabled to guarantee correct operation of following modules.
Implements IModule.
Definition at line 107 of file UnpackModule.cs.
The current processing policy.
Definition at line 93 of file UnpackModule.cs.
|
getset |
The target bit depth used during image processing.
This value specifies the bit depth the module will aim for when unpacking packed pixel formats. The actual output bit depth depends on the selected Types.ProcessingPolicy:
This allows you to downsample, preserve, or enhance bit depth depending on your use case.
Definition at line 88 of file UnpackModule.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 59 of file UnpackModule.cs.
|
getinherited |
The module version.
Definition at line 20 of file ModuleBase.cs.