23 : mMaximumValue( maximumValue )
24 , mMinimumValue( minimumValue )
25 , mMinimumMaximumRange( mMaximumValue - mMinimumValue )
26 , mQgsRasterDataType( dataType )
33 : mMaximumValue( f.mMaximumValue )
34 , mMinimumValue( f.mMinimumValue )
35 , mMinimumMaximumRange( f.mMinimumMaximumRange )
36 , mQgsRasterDataType( f.mQgsRasterDataType )
37 , mMaximumValuePossible( f.mMaximumValuePossible )
38 , mMinimumValuePossible( f.mMinimumValuePossible )
46 return static_cast<int>( value );
DataType
Raster data types.
@ Byte
Eight bit unsigned integer (quint8)
A contrast enhancement function is the base class for all raster contrast enhancements.
QgsContrastEnhancementFunction(Qgis::DataType, double, double)
double mMaximumValue
User defineable maximum value for the band, used for enhanceContrasting.
double mMinimumValuePossible
double mMaximumValuePossible
double mMinimumMaximumRange
Minimum maximum range for the band, used for enhanceContrasting.
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.
Qgis::DataType mQgsRasterDataType
Data type of the band.
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.
void setMaximumValue(double value)
Sets the maximum value.
Manipulates raster or point cloud pixel values so that they enhanceContrast or clip into a specified ...