![]() |
IDS peak ICV v1.2.0
|
#include <peak_icv/pipeline/features/peak_icv_binning_feature.hpp>

Public Member Functions | |
| BinningFeature (detail::DownsamplingModule &module) | |
| Creates a BinningFeature for an existing downsampling module. | |
| void | SetEnabled (bool enabled) override |
| Enables or disables the feature. | |
| bool | IsEnabled () const override |
| Indicates whether the feature is currently enabled. | |
| void | ResetToDefault () override |
| Resets all settings to the default values. | |
| void | SetX (uint32_t x) |
| Sets the number of columns used for binning. | |
| void | SetY (uint32_t y) |
| Sets the number of rows used for binning. | |
| uint32_t | GetX () const |
| Gets the current number of columns used for binning. | |
| uint32_t | GetY () const |
| Gets the current number of rows used for binning. | |
| peak::common::IntervalU | GetRange () const |
| Gets the valid range for the binning factors x and y. | |
| void | SetMode (const BinningMode &mode) |
| Sets the BinningMode. | |
| BinningMode | GetMode () const |
| Gets the current BinningMode. | |
Binning is used to decrease the image size.
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.
Definition at line 53 of file peak_icv_binning_feature.hpp.
|
inlineexplicit |
Creates a BinningFeature for an existing downsampling module.
| module | Reference to the underlying detail::DownsamplingModule. |
Definition at line 161 of file peak_icv_binning_feature.hpp.
|
inline |
Gets the current BinningMode.
Definition at line 241 of file peak_icv_binning_feature.hpp.
|
inline |
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 SetX or SetY.
Definition at line 220 of file peak_icv_binning_feature.hpp.
|
inline |
Gets the current number of columns used for binning.
Definition at line 210 of file peak_icv_binning_feature.hpp.
|
inline |
Gets the current number of rows used for binning.
Definition at line 215 of file peak_icv_binning_feature.hpp.
|
inlineoverridevirtual |
Indicates whether the feature is currently enabled.
true if enabled; otherwise, false.Implements IFeature.
Definition at line 170 of file peak_icv_binning_feature.hpp.
|
inlineoverridevirtual |
Resets all settings to the default values.
Implements IFeature.
Definition at line 175 of file peak_icv_binning_feature.hpp.
|
inlineoverridevirtual |
Enables or disables the feature.
| enabled | Set to true to enable the feature, or false to disable it. |
Implements IFeature.
Definition at line 165 of file peak_icv_binning_feature.hpp.
|
inline |
Sets the BinningMode.
| mode | The BinningMode to set. |
| NotSupportedException | If the mode is an unsupported BinningMode. |
Definition at line 225 of file peak_icv_binning_feature.hpp.
|
inline |
Sets the number of columns used for binning.
| x | An integer value representing the number of columns summarized/averaged during binning. Valid values are within the range returned by GetRange. |
| OutOfRangeException | If x is outside the valid range. |
Definition at line 180 of file peak_icv_binning_feature.hpp.
|
inline |
Sets the number of rows used for binning.
| y | An integer value representing the number of rows summarized/averaged during binning. Valid values are within the range returned by GetRange. |
| OutOfRangeException | If y is outside the valid range. |
Definition at line 195 of file peak_icv_binning_feature.hpp.