73 PEAK_COMMON_NO_DISCARD
bool IsEnabled()
const override;
94 void SetX(uint32_t x);
106 void SetY(uint32_t y);
115 PEAK_COMMON_NO_DISCARD uint32_t
GetX()
const;
124 PEAK_COMMON_NO_DISCARD uint32_t
GetY()
const;
188 const auto range = m_module.
GetRange();
190 +
" is incorrect; the expected value must be between " + std::to_string(range.GetMinimum()) +
" and "
191 + std::to_string(range.GetMaximum()) +
".");
203 const auto range = m_module.
GetRange();
205 +
" is incorrect; the expected value must be between " + std::to_string(range.GetMinimum()) +
" and "
206 + std::to_string(range.GetMaximum()) +
".");
212 return m_module.
GetX();
217 return m_module.
GetY();
Represents a continuous numeric interval with inclusive lower and upper bounds.
Thrown when a requested operation is not implemented or supported.
Thrown when a value is outside the allowed range.
Downsampling is used to decrease the image size.
uint32_t GetY() const
Returns the current number of rows used for downsampling.
DownsamplingMode GetMode() const
Returns the current DownsamplingMode.
void SetMode(const DownsamplingMode &mode)
Sets the DownsamplingMode.
uint32_t GetX() const
Returns the current number of columns used for downsampling.
void SetEnabled(bool enabled) override
Sets the enabled state of this module.
void SetY(uint32_t y)
Sets the number of rows to downsample.
void SetX(uint32_t x)
Sets the number of columns to downsample.
peak::common::IntervalU GetRange() const
Returns the valid range for downsampling factors x and y.
void ResetToDefault() override
Resets all settings to default values, except the CustomType.
bool IsEnabled() const override
Checks if the module is currently enabled.
Binning is used to decrease the image size.
uint32_t GetY() const
Gets the current number of rows used for binning.
void SetMode(const BinningMode &mode)
Sets the BinningMode.
BinningFeature(detail::DownsamplingModule &module)
Creates a BinningFeature for an existing downsampling module.
uint32_t GetX() const
Gets the current number of columns used for binning.
void SetEnabled(bool enabled) override
Enables or disables the feature.
void SetY(uint32_t y)
Sets the number of rows used for binning.
void SetX(uint32_t x)
Sets the number of columns used for binning.
BinningMode GetMode() const
Gets the current BinningMode.
peak::common::IntervalU GetRange() const
Gets the valid range for the binning factors x and y.
void ResetToDefault() override
Resets all settings to the default values.
bool IsEnabled() const override
Indicates whether the feature is currently enabled.
Abstract base class for all image processing pipeline features.
DownsamplingMode
Mode parameter for the downsampling algorithm.
BinningMode
Mode parameter for the binning algorithm.
@ Sum
The pixel values of neighboring rows and/or columns are summed during binning.
@ Average
The averaged pixel values of neighboring rows and/or columns are computed during binning.