
Public Member Functions | |
| None | __init__ (self, DownsamplingModule module) |
| Creates a BinningFeature 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 binning. | |
| None | x (self, int value) |
| Sets the number of columns used for binning. | |
| int | y (self) |
| Gets the current number of rows used for binning. | |
| None | y (self, int value) |
| Sets the number of rows used for binning. | |
| BinningMode | mode (self) |
| Gets the current BinningMode. | |
| None | mode (self, BinningMode value) |
| Sets the BinningMode. | |
| Interval | range (self) |
| Gets the valid range for the binning factors x and y. | |
Protected Attributes | |
| _module = module | |
Binning 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 summarizing or averaging groups of pixels in the horizontal (x) and/or vertical (y) directions. It helps preserve image quality by minimizing aliasing artifacts.
Default configuration:
Definition at line 39 of file binning_feature.py.
| None __init__ | ( | self, | |
| DownsamplingModule | module ) |
Creates a BinningFeature for an existing downsampling module.
| module | Reference to the underlying DownsamplingModule. |
Definition at line 70 of file binning_feature.py.
| bool enabled | ( | self | ) |
Gets whether this feature is currently enabled.
Reimplemented from IFeature.
Definition at line 82 of file binning_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 94 of file binning_feature.py.
| BinningMode mode | ( | self | ) |
Gets the current BinningMode.
Definition at line 174 of file binning_feature.py.
| None mode | ( | self, | |
| BinningMode | value ) |
Sets the BinningMode.
| value | The BinningMode to set. |
Definition at line 186 of file binning_feature.py.
| Interval range | ( | self | ) |
Gets the valid range for the binning factors x and y.
The returned interval specifies the minimum and maximum values that can be passed to object.x or object.y.
Definition at line 198 of file binning_feature.py.
| None reset_to_default | ( | self | ) |
Resets all settings to their defaults.
Default configuration:
Reimplemented from IFeature.
Definition at line 105 of file binning_feature.py.
| int x | ( | self | ) |
Gets the current number of columns used for binning.
Definition at line 122 of file binning_feature.py.
| None x | ( | self, | |
| int | value ) |
Sets the number of columns used for binning.
| value | An integer value representing the number of columns summarized/averaged during binning. Valid values are within the range returned by object.range. |
| OutOfRangeException | If value is outside the valid range. |
Definition at line 134 of file binning_feature.py.
| int y | ( | self | ) |
Gets the current number of rows used for binning.
Definition at line 148 of file binning_feature.py.
| None y | ( | self, | |
| int | value ) |
Sets the number of rows used for binning.
| value | An integer value representing the number of rows summarized/averaged during binning. Valid values are within the range returned by object.range. |
| OutOfRangeException | If value is outside the valid range. |
Definition at line 160 of file binning_feature.py.
|
protected |
Definition at line 79 of file binning_feature.py.