23 : mMaximumValue( maximumValue )
24 , mMinimumValue( minimumValue )
25 , mMinimumMaximumRange( mMaximumValue - mMinimumValue )
26 , mQgsRasterDataType( dataType )
46 return static_cast<int>( value );
void setMaximumValue(double value)
Sets the maximum value.
DataType
Raster data types.
void setMinimumValue(double value)
Sets the minimum value.
virtual bool isValueInDisplayableRange(double value)
A customizable method to indicate if a pixel's value is within the displayable range.
QgsContrastEnhancementFunction(Qgis::DataType, double, double)
double mMinimumValuePossible
double mMinimumMaximumRange
Minimum maximum range for the band, used for enhanceContrasting.
Qgis::DataType mQgsRasterDataType
Data type of the band.
double mMaximumValuePossible
A contrast enhancement function is the base class for all raster contrast enhancements.
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValue
User defineable minimum value for the band, used for enhanceContrasting.
virtual int enhance(double value)
A customizable method that takes in a double value and returns a int between 0 and 255...
Manipulates raster pixel values so that they enhanceContrast or clip into a specified numerical range...
Eight bit unsigned integer (quint8)