![]() |
IDS peak ICV v1.2.0
|

Public Member Functions | |
| None | __init__ (self, DownsamplingModule module) |
| Creates a DecimationFeature for an existing downsampling module. | |
| bool | enabled (self) |
| Indicates whether the feature is currently enabled. | |
| None | enabled (self, bool value) |
| Enables or disables the feature. | |
| None | reset_to_default (self) |
| Resets all settings to the default configuration: | |
| int | x (self) |
| Gets the current number of columns used for decimation. | |
| None | x (self, int value) |
| Sets the number of columns used for decimation. | |
| int | y (self) |
| Gets the current number of rows used for decimation. | |
| None | y (self, int value) |
| Sets the number of rows used for decimation. | |
| Interval | range (self) |
| Gets the valid range for the decimation factors x and y. | |
Protected Attributes | |
| _module = module | |
Decimation is used to decrease the image size.
|
|
|
|
See the Pixel and Pixel Format Specifications for a detailed description of the pixel formats.
This method reduces resolution by selecting (i.e., skipping) pixels at regular intervals along columns (x), rows (y) or both. It is computationally efficient but may introduce aliasing.
Default Configuration:
Definition at line 8 of file decimation_feature.py.
| None __init__ | ( | self, | |
| DownsamplingModule | module ) |
Creates a DecimationFeature for an existing downsampling module.
| module | module Reference to the underlying DownsamplingModule. |
Definition at line 34 of file decimation_feature.py.
| bool enabled | ( | self | ) |
Indicates whether the feature is currently enabled.
Reimplemented from IFeature.
Definition at line 45 of file decimation_feature.py.
| None enabled | ( | self, | |
| bool | value ) |
Enables or disables the feature.
| value | Set to True to enable the feature, or False to disable it. |
Reimplemented from IFeature.
Definition at line 54 of file decimation_feature.py.
| Interval range | ( | self | ) |
Gets the valid range for the decimation factors x and y.
The returned interval specifies the minimum and maximum values that can be passed to the property x or y.
Definition at line 126 of file decimation_feature.py.
| None reset_to_default | ( | self | ) |
Resets all settings to the default configuration:
Reimplemented from IFeature.
Definition at line 62 of file decimation_feature.py.
| int x | ( | self | ) |
Gets the current number of columns used for decimation.
Definition at line 77 of file decimation_feature.py.
| None x | ( | self, | |
| int | value ) |
Sets the number of columns used for decimation.
| value | The number of columns used for decimation. The decimation algorithm uses one column, skips the next x - 1 columns, and repeats this process. Valid values are within the range returned by object.range. |
| OutOfRangeException | If value is outside the valid range. |
Definition at line 88 of file decimation_feature.py.
| int y | ( | self | ) |
Gets the current number of rows used for decimation.
Definition at line 102 of file decimation_feature.py.
| None y | ( | self, | |
| int | value ) |
Sets the number of rows used for decimation.
| value | The number of rows used for decimation. The decimation algorithm uses one row, skips the next y - 1 rows, and repeats this process. Valid values are within the range returned by object.range. |
| OutOfRangeException | If value is outside the valid range. |
Definition at line 112 of file decimation_feature.py.
|
protected |
Definition at line 42 of file decimation_feature.py.