QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
18 #ifndef QGSRASTERBANDSTATS
19 #define QGSRASTERBANDSTATS
21 #include "qgis_core.h"
46 SumOfSquares = 1 << 6,
47 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
53 minimumValue = std::numeric_limits<double>::max();
54 maximumValue = -std::numeric_limits<double>::max();
qgssize elementCount
The number of not no data cells in the band.
The RasterBandStats struct is a container for statistics about a single raster band.
double sumOfSquares
The sum of the squares. Used to calculate standard deviation.
double mean
The mean cell value for the band. NO_DATA values are excluded.
double range
The range is the distance between min & max.
A rectangle specified with double values.
double maximumValue
The maximum cell value in the raster band.
bool contains(const QgsRasterBandStats &s) const
Compares region, size etc. not collected statistics.
double sum
The sum of all cells in the band. NO_DATA values are excluded.
double minimumValue
The minimum cell value in the raster band.
QgsRectangle extent
Extent used to calc statistics.
int width
Number of columns used to calc statistics.
double stdDev
The standard deviation of the cell values.
int statsGathered
Collected statistics.
int height
Number of rows used to calc statistics.
int bandNumber
The gdal band number (starts at 1)
unsigned long long qgssize
Qgssize is used instead of size_t, because size_t is stdlib type, unknown by SIP, and it would be har...