
Public Member Functions | |
| None | __init__ (self, DownsamplingModule module) |
| Creates a DecimationFeature for an existing downsampling module. | |
| bool | enabled (self) |
| Gets whether this feature is currently enabled. | |
| None | enabled (self, bool enabled) |
| Enables or disables the feature. | |
| None | reset_to_default (self) |
| Resets all settings to their defaults. | |
| 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 | ) |
Gets whether this feature is currently enabled.
Reimplemented from IFeature.
Definition at line 45 of file decimation_feature.py.
| None enabled | ( | self, | |
| bool | enabled ) |
Enables or disables the feature.
| enabled | True to enable, False to disable. |
Reimplemented from IFeature.
Definition at line 55 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 130 of file decimation_feature.py.
| None reset_to_default | ( | self | ) |
Resets all settings to their defaults.
Default configuration:
Reimplemented from IFeature.
Definition at line 64 of file decimation_feature.py.
| int x | ( | self | ) |
Gets the current number of columns used for decimation.
Definition at line 81 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 92 of file decimation_feature.py.
| int y | ( | self | ) |
Gets the current number of rows used for decimation.
Definition at line 106 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 116 of file decimation_feature.py.
|
protected |
Definition at line 42 of file decimation_feature.py.