70 PEAK_COMMON_NO_DISCARD
bool IsEnabled()
const override;
92 void SetX(uint32_t x);
105 void SetY(uint32_t y);
115 PEAK_COMMON_NO_DISCARD uint32_t
GetX()
const;
125 PEAK_COMMON_NO_DISCARD uint32_t
GetY()
const;
169 const auto range = m_module.
GetRange();
171 +
" is incorrect; the expected value must be between " + std::to_string(range.GetMinimum()) +
" and "
172 + std::to_string(range.GetMaximum()) +
".");
184 const auto range = m_module.
GetRange();
186 +
" is incorrect; the expected value must be between " + std::to_string(range.GetMinimum()) +
" and "
187 + std::to_string(range.GetMaximum()) +
".");
193 return m_module.
GetX();
198 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, except the CustomType.
bool IsEnabled() const override
Checks if the module is currently enabled.
Decimation is used to decrease the image size.
uint32_t GetY() const
Gets the current number of rows used for decimation.
uint32_t GetX() const
Gets 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
Gets 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.