33 if ( myStretchedValue < 0 )
37 else if ( myStretchedValue > 255 )
42 return myStretchedValue;
DataType
Raster data types.
QgsContrastEnhancementFunction(Qgis::DataType, double, double)
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double minimumValue() const
Returns the minimum value.
double mMinimumMaximumRange
Minimum maximum range for the band, used for enhanceContrasting.
double maximumValue() const
Returns the maximum value.
double mMinimumValue
User defineable minimum value for the band, used for enhanceContrasting.
int enhance(double) override
A customizable method that takes in a double value and returns a int between 0 and 255.
QgsLinearMinMaxEnhancementWithClip(Qgis::DataType, double, double)
bool isValueInDisplayableRange(double) override
A customizable method to indicate if a pixel's value is within the displayable range.