88 void SetX(uint32_t x);
101 void SetY(uint32_t y);
165 const auto range = m_module.
GetRange();
167 +
" is incorrect; the expected value must be between " + std::to_string(range.GetMinimum()) +
" and "
168 + std::to_string(range.GetMaximum()) +
".");
180 const auto range = m_module.
GetRange();
182 +
" is incorrect; the expected value must be between " + std::to_string(range.GetMinimum()) +
" and "
183 + std::to_string(range.GetMaximum()) +
".");
189 return m_module.
GetX();
194 return m_module.
GetY();
Represents a continuous numeric interval with inclusive lower and upper bounds.
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.
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.
bool IsEnabled() const override
Checks if the module is currently enabled.
Decimation is used to decrease the image size.
uint32_t GetY() const
Retrieves the current number of rows used for decimation.
uint32_t GetX() const
Retrieves the current number of columns used for decimation.
void SetEnabled(bool enabled) override
Enables or disables the feature.
DecimationFeature(detail::DownsamplingModule &module)
Creates a DecimationFeature for an existing downsampling module.
void SetY(uint32_t y)
Sets the number of rows used for decimation.
void SetX(uint32_t x)
Sets the number of columns used for decimation.
peak::common::IntervalU GetRange() const
Retrieves the valid range for the decimation 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.
#define PEAK_COMMON_NO_DISCARD
Compatability macro for the nodiscard attribute.