
Data Structures | |
| class | Handle |
Public Member Functions | |
| DownsamplingModule () | |
| Creates an instance of class DownsamplingModule with factors X = 1, Y = 1 and DownsamplingMode = DownsamplingMode.BinningAverage. | |
| DownsamplingModule (DownsamplingMode defaultMode, string customName) | |
| Creates an instance of class DownsamplingModule with factors X = 1, Y = 1 and the given T:DownsamplingMode and name. | |
| void | Dispose () |
| Releases all resources used by this class. | |
| override Image | Process (Image inputImage) |
| Applies the downsampling factors and mode to the input image and returns a downsampled copy based on current settings. | |
| override object | Process (object input) |
| Applies the downsampling factors and mode to the input image and returns a downsampled copy based on current settings. | |
| 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 void | ResetToDefault () |
| Resets all parameters to their default values. | |
Properties | |
| string? | CustomId [get, set] |
| The custom TypeId of the module for serialization purposes. | |
| 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 | X [get, set] |
| The current number of columns used for downsampling. | |
| uint | Y [get, set] |
| The current number of rows used for downsampling. | |
| IntervalU | Range [get] |
| Gets the valid range for downsampling factors x and y. | |
| DownsamplingMode | Mode [get, set] |
| The current T:DownsamplingMode. | |
| int | Version = 1 [get] |
| The module version. | |
| virtual bool | IsEnabled = true [get, set] |
| Get whether this module is enabled. | |
Downsampling is used to decrease the image size.
This module provides comprehensive functionality for image downsampling, which is the process of reducing image resolution and dimensions. It supports multiple algorithms optimized for various use cases.
There are two basic techniques for downsampling:
The reduction factors are specified separately for the x (columns) and y (rows) directions.
Definition at line 66 of file DownsamplingModule.cs.
|
inline |
Creates an instance of class DownsamplingModule with factors X = 1, Y = 1 and DownsamplingMode = DownsamplingMode.BinningAverage.
Definition at line 85 of file DownsamplingModule.cs.
|
inline |
Creates an instance of class DownsamplingModule with factors X = 1, Y = 1 and the given T:DownsamplingMode and name.
Definition at line 99 of file DownsamplingModule.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 366 of file DownsamplingModule.cs.
|
inline |
Releases all resources used by this class.
Definition at line 214 of file DownsamplingModule.cs.
Applies the downsampling factors and mode to the input image and returns a downsampled copy based on current settings.
| inputImage | The input image to be processed. |
| IcvNotPossibleException | The inputImage has any other than the supported pixel formats. |
Definition at line 252 of file DownsamplingModule.cs.
|
inlinevirtual |
Applies the downsampling factors and mode to the input image and returns a downsampled copy based on current settings.
| input | The input image to be processed. |
| IcvNotPossibleException | The input has any other than the supported pixel formats. |
Reimplemented from ModuleBase.
Definition at line 311 of file DownsamplingModule.cs.
|
inlinevirtual |
Resets all parameters to their default values.
Default values:
Reimplemented from ModuleBase.
Definition at line 415 of file DownsamplingModule.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 327 of file DownsamplingModule.cs.
|
getset |
The custom TypeId of the module for serialization purposes.
Definition at line 115 of file DownsamplingModule.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 current T:DownsamplingMode.
Definition at line 168 of file DownsamplingModule.cs.
Gets the valid range for downsampling factors x and y.
Definition at line 153 of file DownsamplingModule.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 118 of file DownsamplingModule.cs.
|
getinherited |
The module version.
Definition at line 20 of file ModuleBase.cs.
|
getset |
The current number of columns used for downsampling.
Definition at line 123 of file DownsamplingModule.cs.
|
getset |
The current number of rows used for downsampling.
Definition at line 138 of file DownsamplingModule.cs.