Subgroup: other

Class: QgsBrightnessContrastFilter

class qgis.core.QgsBrightnessContrastFilter

Bases: qgis._core.QgsRasterInterface

Brightness/contrast filter pipe for rasters.

Methods

bandCount
bandStatistics Get band statistics.
block
brightness
capabilities Returns a bitmask containing the supported capabilities
capabilitiesString Returns the above in friendly format.
clone
contrast
cumulativeCut Find values for cumulative pixel count cut.
dataType
dataTypeSize
extent Get the extent of the interface.
generateBandName helper function to create zero padded band names
hasHistogram Returns true if histogram is available (cached, already calculated)
hasStatistics Returns true if histogram is available (cached, already calculated).
histogram Get histogram.
initHistogram
initStatistics
input Current input
on Is on/off
readXml Sets base class members from xml.
setBrightness
setContrast
setInput
setOn Set on/off
sourceDataType Returns source data type for the band specified by number,
sourceInput Get source / raw input, the first in pipe, usually provider.
writeXml
xBlockSize Get block size
xSize Get raster size
yBlockSize
ySize

Attributes

BuildPyramids
Create
Identify
IdentifyFeature
IdentifyHtml
IdentifyText
IdentifyValue
NoCapabilities
Remove
Size
bandCount(self) → int
block(self, bandNo: int, extent: QgsRectangle, width: int, height: int, feedback: QgsRasterBlockFeedback = None) → QgsRasterBlock
brightness(self) → int
clone(self) → QgsBrightnessContrastFilter
contrast(self) → int
dataType(self, bandNo: int) → Qgis.DataType
initHistogram()
initStatistics()
readXml(self, filterElem: QDomElement)

Sets base class members from xml. Usually called from create() methods of subclasses

setBrightness(self, brightness: int)
setContrast(self, contrast: int)
setInput(self, input: QgsRasterInterface) → bool
writeXml(self, doc: QDomDocument, parentElem: QDomElement)