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


Public Member Functions | |
| DecimationFeature (detail::DownsamplingModule &module) | |
| Creates a DecimationFeature 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 decimation. | |
| void | SetY (uint32_t y) |
| Sets the number of rows used for decimation. | |
| uint32_t | GetX () const |
| Retrieves the current number of columns used for decimation. | |
| uint32_t | GetY () const |
| Retrieves the current number of rows used for decimation. | |
| peak::common::IntervalU | GetRange () const |
| Retrieves the valid range for the decimation factors x and y. | |
Decimation is used to decrease the image size.
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.
Definition at line 46 of file peak_icv_decimation_feature.hpp.
|
inlineexplicit |
Creates a DecimationFeature for an existing downsampling module.
| module | Reference to the underlying detail::DownsamplingModule. |
Definition at line 138 of file peak_icv_decimation_feature.hpp.
|
inline |
Retrieves the valid range for the decimation factors x and y.
The returned interval specifies the minimum and maximum values that can be passed to SetX or SetY.
Definition at line 197 of file peak_icv_decimation_feature.hpp.
|
inline |
Retrieves the current number of columns used for decimation.
x - 1 columns, and repeats this process.Definition at line 187 of file peak_icv_decimation_feature.hpp.
|
inline |
Retrieves the current number of rows used for decimation.
y - 1 rows, and repeats this process.Definition at line 192 of file peak_icv_decimation_feature.hpp.
|
inlineoverridevirtual |
Indicates whether the feature is currently enabled.
true if enabled; otherwise, false.Implements IFeature.
Definition at line 147 of file peak_icv_decimation_feature.hpp.
|
inlineoverridevirtual |
Resets all settings to the default values.
Implements IFeature.
Definition at line 152 of file peak_icv_decimation_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 142 of file peak_icv_decimation_feature.hpp.
|
inline |
Sets the number of columns used for decimation.
| x | 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 GetRange. |
| OutOfRangeException | If x is outside the valid range. |
Definition at line 157 of file peak_icv_decimation_feature.hpp.
|
inline |
Sets the number of rows used for decimation.
| y | 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 GetRange. |
| OutOfRangeException | If y is outside the valid range. |
Definition at line 172 of file peak_icv_decimation_feature.hpp.