QgsRasterHistogram class
The QgsRasterHistogram is a container for histogram of a single raster band.
Contents
- Reference
It is used to cache computed histograms in raster providers.
Public functions
- auto operator==(const QgsRasterHistogram& h) const -> bool
- Compares region, size etc. not histogram itself.
Public variables
- int bandNumber
- The gdal band number (starts at 1)
- int binCount
- Number of bins (intervals,buckets) in histogram.
- QgsRectangle extent
- Extent used to calc histogram.
- int height
- Number of rows used to calc histogram.
-
QgsRasterHistogram::
HistogramVector histogramVector - Store the histogram for a given layer.
- bool includeOutOfRange
- Whether histogram includes out of range values (in first and last bin)
- double maximum
- The maximum histogram value.
- double minimum
- The minimum histogram value.
- int nonNullCount
- The number of non NULL cells used to calculate histogram.
- bool valid
- Histogram is valid.
- int width
- Number of columns used to calc histogram.
Variable documentation
QgsRasterHistogram:: HistogramVector QgsRasterHistogram:: histogramVector
Store the histogram for a given layer.