Raster histogram
From AWF-Wiki
(Difference between revisions)
Line 7: | Line 7: | ||
[[Image: Qgis_histogram_multiband.png|thumb|left|400px|'''Figure A:''' Line histograms of all bands]] | [[Image: Qgis_histogram_multiband.png|thumb|left|400px|'''Figure A:''' Line histograms of all bands]] | ||
Click on {{button|text=Pref/Actions}} and deactivate ''Draw as lines''. Activate ''Show selected band'' and ''Always show min/max markers''. | Click on {{button|text=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''')[[Image: Qgis_histogram_singleband.png|thumb| | + | 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''')[[Image: Qgis_histogram_singleband.png|thumb|left|400px|'''Figure B:''' Histogram of a single selected band]]. Click on [[Image: Qgis_save_icon.png|20px]]. The graphics may be saved as png file. |
== Using R scripts == | == Using R scripts == |
Revision as of 20:44, 22 October 2017
Using Layer properties
- Click the Add raster layer and select the file C:/OSGeo4W64/geodata/raster/s2/Subset_S2A_MSIL2A_20170619T.tif.
- After clicking Open , the raster layer appears on the QGIS canvas.
- Right click the layer name in the Layers panel and select Properties --> Histogramm
This dialog displays a histogram for all bands band. Left click and drag a box on the diagram to zoom in. Click on Pref/Actions and activate Draw as lines (Figure A).
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). Click on . The graphics may be saved as png file.Using R scripts
- If the processing toolbox is not visible, select Processing --> Toolbox.
- In the processing toolbar, type Get R scripts into the search field to click to open it. In the Install scripts and model windows unfold the folder Not installed and activate Advanced histogram as shown below in the screenshot. .