38 [[nodiscard]]
const char*
name()
const override {
return "Contrast"; }
85 const Halide::Func& input_func,
89 const Halide::Param<float>& param
Interface for providing the Halide fusion logic of an operation.
Adjusts the contrast of an image region.
static constexpr float DEFAULT_CONTRAST_VALUE
Default contrast value. Defined by OperationRanges::getContrastDefaultValue().
const char * name() const override
Gets the constant name of the operation.
OperationType type() const override
Gets the unique type identifier of the operation.
Halide::Func appendToFusedPipeline(const Halide::Func &input_func, const Halide::Var &x, const Halide::Var &y, const Halide::Var &c, const Halide::Param< float > ¶m) const override
Appends this operation's logic to a fused Halide pipeline. This method is used by the PipelineBuilder...
static constexpr float MIN_CONTRAST_VALUE
Minimum allowed contrast value. Defined by OperationRanges::getContrastMinValue().
static constexpr float MAX_CONTRAST_VALUE
Maximum allowed contrast value. Defined by OperationRanges::getContrastMaxValue().
Interface for providing the Halide fusion logic of an operation.
OperationType
Identifies the type of an image processing operation.
@ Contrast
Contrast adjustment (Multiplicative around a midpoint). Expands or compresses the dynamic range aroun...
Manages the lifecycle of a single IWorkingImage instance.
Declaration of the OperationRanges struct.
static consteval float getContrastMinValue()
Gets the minimum allowed value for the Contrast operation.
static consteval float getContrastDefaultValue()
Gets the default value for the Contrast operation.
static consteval float getContrastMaxValue()
Gets the maximum allowed value for the Contrast operation.