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();
A rectangle specified with double values.
double sum
The sum of all cells in the band. NO_DATA values are excluded.
int height
Number of rows used to calc statistics.
int bandNumber
The gdal band number (starts at 1)
double maximumValue
The maximum cell value in the raster band.
bool contains(const QgsRasterBandStats &s) const
Compares region, size etc. not collected statistics.
QgsRectangle extent
Extent used to calc statistics.
double stdDev
The standard deviation of the cell values.
The RasterBandStats struct is a container for statistics about a single raster band.
double mean
The mean cell value for the band. NO_DATA values are excluded.
qgssize elementCount
The number of not no data cells in the band.
int statsGathered
Collected statistics.
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...
double range
The range is the distance between min & max.
double minimumValue
The minimum cell value in the raster band.
double sumOfSquares
The sum of the squares. Used to calculate standard deviation.
int width
Number of columns used to calc statistics.