QgsRasterBandStats class
The RasterBandStats struct is a container for statistics about a single raster band.
Contents
- Reference
Public functions
- auto contains(const QgsRasterBandStats& s) const -> bool
- Compares region, size etc. not collected statistics.
Public variables
- int bandNumber
- The gdal band number (starts at 1)
- qgssize elementCount
- The number of not no data cells in the band.
- QgsRectangle extent
- Extent used to calc statistics.
- int height
- Number of rows used to calc statistics.
- double maximumValue
- The maximum cell value in the raster band.
- double mean
- The mean cell value for the band. NO_DATA values are excluded.
- double minimumValue
- The minimum cell value in the raster band.
- double range
- The range is the distance between min & max.
- int statsGathered
- Collected statistics.
- double stdDev
- The standard deviation of the cell values.
- double sum
- The sum of all cells in the band. NO_DATA values are excluded.
- double sumOfSquares
- The sum of the squares. Used to calculate standard deviation.
- int width
- Number of columns used to calc statistics.
Variable documentation
double QgsRasterBandStats:: maximumValue
The maximum cell value in the raster band.
NO_DATA values are ignored. This does not use the gdal GetMaximmum function.
double QgsRasterBandStats:: minimumValue
The minimum cell value in the raster band.
NO_DATA values are ignored. This does not use the gdal GetMinimum function.