19#ifndef QGSCONTRASTENHANCEMENTFUNCTION_H
20#define QGSCONTRASTENHANCEMENTFUNCTION_H
44 virtual int enhance(
double value );
DataType
Raster data types.
QgsContrastEnhancementFunction(Qgis::DataType, double, double)
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValuePossible
double mMaximumValuePossible
double minimumValue() const
Returns the minimum value.
double mMinimumMaximumRange
Minimum maximum range for the band, used for enhanceContrasting.
void setMinimumValue(double value)
Sets the minimum value.
double maximumValue() const
Returns the maximum value.
virtual bool isValueInDisplayableRange(double value)
A customizable method to indicate if a pixel's value is within the displayable range.
Qgis::DataType mQgsRasterDataType
Data type of the band.
virtual ~QgsContrastEnhancementFunction()=default
virtual int enhance(double value)
A customizable method that takes in a double value and returns a int between 0 and 255.
double mMinimumValue
User defineable minimum value for the band, used for enhanceContrasting.
QgsContrastEnhancementFunction & operator=(const QgsContrastEnhancementFunction &)=delete
void setMaximumValue(double value)
Sets the maximum value.