18 #ifndef QGSRASTERBANDSTATS 19 #define QGSRASTERBANDSTATS 45 SumOfSquares = 1 << 6,
46 All = Min | Max | Range | Sum | Mean | StdDev | SumOfSquares
A rectangle specified with double values.
double sum
The sum of all cells in the band.
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.
double ANALYSIS_EXPORT max(double x, double y)
Returns the maximum of two doubles or the first argument if both are equal.
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.
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.
int width
Number of columns used to calc statistics.