QGIS API Documentation 3.41.0-Master (25ec5511245)
|
A contrast enhancement function is the base class for all raster contrast enhancements. More...
#include <qgscontrastenhancementfunction.h>
Public Member Functions | |
QgsContrastEnhancementFunction (const QgsContrastEnhancementFunction &f) | |
QgsContrastEnhancementFunction (Qgis::DataType, double, double) | |
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. | |
virtual bool | isValueInDisplayableRange (double value) |
A customizable method to indicate if a pixel's value is within the displayable range. | |
double | maximumValue () const |
Returns the maximum value. | |
double | minimumValue () const |
Returns the minimum value. | |
QgsContrastEnhancementFunction & | operator= (const QgsContrastEnhancementFunction &)=delete |
void | setMaximumValue (double value) |
Sets the maximum value. | |
void | setMinimumValue (double value) |
Sets the minimum value. | |
Protected Attributes | |
double | mMaximumValue |
User defineable maximum value for the band, used for enhanceContrasting. | |
double | mMaximumValuePossible = std::numeric_limits< double >::max() |
double | mMinimumMaximumRange |
Minimum maximum range for the band, used for enhanceContrasting. | |
double | mMinimumValue |
User defineable minimum value for the band, used for enhanceContrasting. | |
double | mMinimumValuePossible = std::numeric_limits< double >::lowest() |
Qgis::DataType | mQgsRasterDataType |
Data type of the band. | |
A contrast enhancement function is the base class for all raster contrast enhancements.
The purpose of a contrast enhancement is to enhanceContrast or clip a pixel value into a specified bounding range.
Definition at line 32 of file qgscontrastenhancementfunction.h.
QgsContrastEnhancementFunction::QgsContrastEnhancementFunction | ( | Qgis::DataType | dataType, |
double | minimumValue, | ||
double | maximumValue | ||
) |
Definition at line 22 of file qgscontrastenhancementfunction.cpp.
QgsContrastEnhancementFunction::QgsContrastEnhancementFunction | ( | const QgsContrastEnhancementFunction & | f | ) |
Definition at line 32 of file qgscontrastenhancementfunction.cpp.
|
virtualdefault |
|
virtual |
A customizable method that takes in a double value and returns a int between 0 and 255.
Reimplemented in QgsClipToMinMaxEnhancement, QgsLinearMinMaxEnhancement, and QgsLinearMinMaxEnhancementWithClip.
Definition at line 42 of file qgscontrastenhancementfunction.cpp.
|
virtual |
A customizable method to indicate if a pixel's value is within the displayable range.
Reimplemented in QgsClipToMinMaxEnhancement, and QgsLinearMinMaxEnhancementWithClip.
Definition at line 54 of file qgscontrastenhancementfunction.cpp.
|
inline |
Returns the maximum value.
Definition at line 71 of file qgscontrastenhancementfunction.h.
|
inline |
Returns the minimum value.
Definition at line 79 of file qgscontrastenhancementfunction.h.
|
delete |
void QgsContrastEnhancementFunction::setMaximumValue | ( | double | value | ) |
Sets the maximum value.
Definition at line 61 of file qgscontrastenhancementfunction.cpp.
void QgsContrastEnhancementFunction::setMinimumValue | ( | double | value | ) |
Sets the minimum value.
Definition at line 75 of file qgscontrastenhancementfunction.cpp.
|
protected |
User defineable maximum value for the band, used for enhanceContrasting.
Definition at line 83 of file qgscontrastenhancementfunction.h.
|
protected |
Definition at line 94 of file qgscontrastenhancementfunction.h.
|
protected |
Minimum maximum range for the band, used for enhanceContrasting.
Definition at line 89 of file qgscontrastenhancementfunction.h.
|
protected |
User defineable minimum value for the band, used for enhanceContrasting.
Definition at line 86 of file qgscontrastenhancementfunction.h.
|
protected |
Definition at line 95 of file qgscontrastenhancementfunction.h.
|
protected |
Data type of the band.
Definition at line 92 of file qgscontrastenhancementfunction.h.