28 if ( myStretchedValue < 0 )
32 else if ( myStretchedValue > 255 )
37 return myStretchedValue;
DataType
Raster data types.
A contrast enhancement function is the base class for all raster contrast enhancements.
double mMinimumMaximumRange
Minimum maximum range for the band, used for enhanceContrasting.
double mMinimumValue
User defineable minimum value for the band, used for enhanceContrasting.
QgsLinearMinMaxEnhancement(Qgis::DataType, double, double)
int enhance(double) override
A customizable method that takes in a double value and returns a int between 0 and 255.