QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
33 if ( myStretchedValue < 0 )
37 else if ( myStretchedValue > 255 )
42 return myStretchedValue;
DataType
Raster data types.
A contrast enhancement function is the base class for all raster contrast enhancements.
bool isValueInDisplayableRange(double) override
A customizable method to indicate if a pixel's value is within the displayable range.
QgsLinearMinMaxEnhancementWithClip(Qgis::DataType, double, double)
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValue
User defineable minimum value for the band, used for enhanceContrasting.
double mMinimumMaximumRange
Minimum maximum range 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.