21 #ifndef QGSCONTRASTENHANCEMENT_H
22 #define QGSCONTRASTENHANCEMENT_H
50 UserDefinedEnhancement
81 static QString contrastEnhancementAlgorithmString( ContrastEnhancementAlgorithm algorithm );
83 static ContrastEnhancementAlgorithm contrastEnhancementAlgorithmFromString(
const QString& contrastEnhancementString );
91 int enhanceContrast(
double );
94 bool isValueInDisplayableRange(
double );
97 void setContrastEnhancementAlgorithm( ContrastEnhancementAlgorithm,
bool generateTable =
true );
103 void setMaximumValue(
double,
bool generateTable =
true );
106 void setMinimumValue(
double,
bool generateTable =
true );
108 void writeXML( QDomDocument& doc, QDomElement& parentElem )
const;
110 void readXML(
const QDomElement& elem );
143 bool generateLookupTable();
146 int calculateContrastEnhancementValue(
double );