18 #ifndef QGSBRIGHTNESSCONTRASTFILTER_H 19 #define QGSBRIGHTNESSCONTRASTFILTER_H 46 void setBrightness(
int brightness ) { mBrightness = qBound( -255, brightness, 255 ); }
49 void setContrast(
int contrast ) { mContrast = qBound( -100, contrast, 100 ); }
59 int adjustColorComponent(
int colorComponent,
int alpha,
int brightness,
double contrastFactor )
const;
68 #endif // QGSBRIGHTNESSCONTRASTFILTER_H virtual int bandCount() const =0
Get number of bands.
A rectangle specified with double values.
virtual void readXML(const QDomElement &filterElem)
Sets base class members from xml.
virtual QgsRasterBlock * block2(int bandNo, const QgsRectangle &extent, int width, int height, QgsRasterBlockFeedback *feedback=nullptr)
Read block of data using given extent and size.
void setBrightness(int brightness)
void setContrast(int contrast)
virtual void writeXML(QDomDocument &doc, QDomElement &parentElem) const
Write base class members to xml.
virtual QGis::DataType dataType(int bandNo) const =0
Returns data type for the band specified by number.
Base class for processing filters like renderers, reprojector, resampler etc.
virtual bool setInput(QgsRasterInterface *input)
Set input.
virtual QgsRasterInterface * clone() const =0
Clone itself, create deep copy.
Brightness/contrast filter pipe for rasters.
DataType
Raster data types.
virtual QgsRasterBlock * block(int bandNo, const QgsRectangle &extent, int width, int height)=0
Read block of data using given extent and size.
Feedback object tailored for raster block reading.