18 #ifndef QGSRASTERHISTOGRAM 19 #define QGSRASTERHISTOGRAM 40 includeOutOfRange =
false;
A rectangle specified with double values.
int bandNumber
The gdal band number (starts at 1)
int width
Number of columns used to calc histogram.
QVector< int > HistogramVector
double minimum
The minimum histogram value.
int height
Number of rows used to calc histogram.
bool qgsDoubleNear(double a, double b, double epsilon=4 *DBL_EPSILON)
double maximum
The maximum histogram value.
The QgsRasterHistogram is a container for histogram of a single raster band.
int binCount
Number of bins (intervals,buckets) in histogram.
HistogramVector histogramVector
Store the histogram for a given layer.
bool valid
Histogram is valid.
QgsRectangle extent
Extent used to calc histogram.
bool includeOutOfRange
Whether histogram includes out of range values (in first and last bin)
bool operator==(const QgsRasterHistogram &h) const
Compares region, size etc.
int nonNullCount
The number of non NULL cells used to calculate histogram.