21 #ifndef QGSCONTRASTENHANCEMENT_H 22 #define QGSCONTRASTENHANCEMENT_H 24 #include "qgis_core.h" 54 UserDefinedEnhancement
99 int enhanceContrast(
double );
102 bool isValueInDisplayableRange(
double );
111 void setMaximumValue(
double,
bool generateTable =
true );
114 void setMinimumValue(
double,
bool generateTable =
true );
116 void writeXml( QDomDocument &doc, QDomElement &parentElem )
const;
118 void readXml(
const QDomElement &elem );
129 std::unique_ptr< QgsContrastEnhancementFunction > mContrastEnhancementFunction;
132 bool mEnhancementDirty =
false;
135 double mLookupTableOffset;
138 int *mLookupTable =
nullptr;
141 double mMinimumValue;
144 double mMaximumValue;
150 double mRasterDataTypeRange;
153 bool generateLookupTable();
156 int calculateContrastEnhancementValue(
double );
double maximumValue() const
Return the maximum value for the contrast enhancement range.
DataType
Raster data types.
double minimumValue() const
Return the minimum value for the contrast enhancement range.
A contrast enhancement function is the base class for all raster contrast enhancements.
ContrastEnhancementAlgorithm
This enumerator describes the types of contrast enhancement algorithms that can be used...
ContrastEnhancementAlgorithm contrastEnhancementAlgorithm() const
Manipulates raster pixel values so that they enhanceContrast or clip into a specified numerical range...
Eight bit unsigned integer (quint8)