QgsClipToMinMaxEnhancement class

A raster contrast enhancement that will clip a value to the specified min/max range.

Contents

For example if a min max range of [10,240] is specified in the constructor, and a value of 250 is called using enhance(), the value will be truncated ('clipped') to 240.

Base classes

class QgsContrastEnhancementFunction
A contrast enhancement function is the base class for all raster contrast enhancements.

Public functions

auto enhance(double value) -> int override
A customizable method that takes in a double value and returns a int between 0 and 255.
auto isValueInDisplayableRange(double value) -> bool override
A customizable method to indicate if a pixel's value is within the displayable range.