IDS peak ICV v1.1.0
Loading...
Searching...
No Matches
DecimationFeature Class Reference

#include <peak_icv/pipeline/features/peak_icv_decimation_feature.hpp>

Inheritance diagram for DecimationFeature:

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
 Gets the current number of columns used for decimation.
 
uint32_t GetY () const
 Gets the current number of rows used for decimation.
 
peak::common::IntervalU GetRange () const
 Gets the valid range for the decimation factors x and y.
 

Detailed Description

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.

Note
Processes the entire image, ignoring any specified image region. As with binning, the alpha channel of the input image (if present) is also ignored during decimation. It is always set to the maximum possible pixel value.
Warning
Decimation permanently reduces image resolution. The original resolution cannot be recovered after decimation is applied.

Defaults
See also
features::BinningFeature
Since
ids_peak_icv 1.0

Definition at line 50 of file peak_icv_decimation_feature.hpp.

Constructor & Destructor Documentation

◆ DecimationFeature()

DecimationFeature ( detail::DownsamplingModule & module)
inlineexplicit

Creates a DecimationFeature for an existing downsampling module.

Parameters
moduleReference to the underlying detail::DownsamplingModule.
Since
ids_peak_icv 1.0

Definition at line 142 of file peak_icv_decimation_feature.hpp.

Member Function Documentation

◆ GetRange()

peak::common::IntervalU GetRange ( ) const
inline

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 SetX or SetY.

Returns
An IntervalU representing the valid decimation factor range.
Since
ids_peak_icv 1.0

Definition at line 201 of file peak_icv_decimation_feature.hpp.

◆ GetX()

uint32_t GetX ( ) const
inline

Gets the current number of columns used for decimation.

Returns
The current number of columns used for decimation. The decimation algorithm uses one column, skips the next x - 1 columns, and repeats this process.
Since
ids_peak_icv 1.0

Definition at line 191 of file peak_icv_decimation_feature.hpp.

◆ GetY()

uint32_t GetY ( ) const
inline

Gets the current number of rows used for decimation.

Returns
The current number of rows used for decimation. The decimation algorithm uses one row, skips the next y - 1 rows, and repeats this process.
Since
ids_peak_icv 1.0

Definition at line 196 of file peak_icv_decimation_feature.hpp.

◆ IsEnabled()

bool IsEnabled ( ) const
inlineoverridevirtual

Indicates whether the feature is currently enabled.

Returns
true if enabled; otherwise, false.
Since
ids_peak_icv 1.0

Implements IFeature.

Definition at line 151 of file peak_icv_decimation_feature.hpp.

◆ ResetToDefault()

void ResetToDefault ( )
inlineoverridevirtual

Resets all settings to the default values.

Note
The enabled state does not change when calling this function.
Since
ids_peak_icv 1.0

Implements IFeature.

Definition at line 156 of file peak_icv_decimation_feature.hpp.

◆ SetEnabled()

void SetEnabled ( bool enabled)
inlineoverridevirtual

Enables or disables the feature.

Parameters
enabledSet to true to enable the feature, or false to disable it.
Since
ids_peak_icv 1.0

Implements IFeature.

Definition at line 146 of file peak_icv_decimation_feature.hpp.

◆ SetX()

void SetX ( uint32_t x)
inline

Sets the number of columns used for decimation.

Parameters
xThe 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.
Exceptions
OutOfRangeExceptionIf x is outside the valid range.
Since
ids_peak_icv 1.0

Definition at line 161 of file peak_icv_decimation_feature.hpp.

◆ SetY()

void SetY ( uint32_t y)
inline

Sets the number of rows used for decimation.

Parameters
yThe 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.
Exceptions
OutOfRangeExceptionIf y is outside the valid range.
Since
ids_peak_icv 1.0

Definition at line 176 of file peak_icv_decimation_feature.hpp.