
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.
|
inline |
Creates an instance of class DownsamplingModule with factors X = 1, Y = 1 and DownsamplingMode = DownsamplingMode.BinningAverage.
|
inline |
Creates an instance of class DownsamplingModule with factors X = 1, Y = 1 and the given T:DownsamplingMode and name.
|
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.
|
inline |
Releases all resources used by this class.
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. |
|
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.
|
inlinevirtual |
Resets all parameters to their default values.
Default values:
Reimplemented from ModuleBase.
|
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.
|
getset |
The custom TypeId of the module for serialization purposes.
|
getsetinherited |
Get whether this module is enabled.
When disabled, Process returns the input image unchanged.
Implements IModule.
|
getset |
The current T:DownsamplingMode.
|
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.
|
getset |
The current number of columns used for downsampling.
|
getset |
The current number of rows used for downsampling.