Raster histogram

From AWF-Wiki
Revision as of 12:43, 2 November 2020 by Hfuchs (Talk | contribs)

Jump to: navigation, search

Using Layer Properties

  1. Click the Open Data Source Manager QGIS 3.0 datasource.png and then Add raster layer QGIS 2.0 addrast.png and select a single band raster file.
  2. After clicking Open , the raster layer appears on the QGIS canvas.
  3. Right click the layer name in the Layers panel and select Properties --> Histogram
  4. Click Compute Histogram. A histogram for all bands is displayed (Figure A). Left click and drag a box on the diagram to zoom in.
    Figure A: Line histograms of all bands

Click on Pref/Actions and deactivate Draw as lines. Activate Show selected band and Always show min/max markers.

The value range of the selected band data is evenly divided into bins. The histogram shows how many pixels of the image fall into each of the bins (Figure B)
Figure B: Histogram of a single selected band
. Click on Qgis save icon.png. The graphics may be saved as png file.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export