Skip to content

Latest commit

 

History

History
181 lines (131 loc) · 5.83 KB

cross_classification_tab.rst

File metadata and controls

181 lines (131 loc) · 5.83 KB

Cross classification

This tab allows for the calculation of a cross classification raster and matrix. Classification is compared to a reference raster or reference vector (which is automatically converted to raster). This is useful for calculating the area for every combination between reference classes and classification values. If a vector is selected as reference, it is possible to choose a field describing class values.

The output is a cross raster that is a .tif file where pixel values represent the categories of comparison (i.e. combinations identified by the CrossMatrixCode) between the classification and reference. Also, a text file containing the cross matrix (i.e. a .csv file) is created with the same name defined for the .tif file.

This tool supports virtual raster output; if the output file name ends with .vrt then the output is created as virtual raster composed of as many .tif files as the number of CPU threads defined in :ref:`system_processing`; for large rasters this can speed up the process.

Tip

Information about APIs of this tool in Remotior Sensus at this link .

Tool symbol and name Description
:guilabel:`Select the classification` input_list select a classification raster (already loaded in QGIS)
reload refresh layer list
checkbox :guilabel:`Use value as NoData` input_number optional if checked, set the value of NoData pixels, ignored during the calculation
:guilabel:`Select the reference vector or raster` input_list select a raster or a vector (already loaded in QGIS), used as reference layer
reload refresh layer list
:guilabel:`Vector field` input_list optional if a vector is selected as reference, select a vector field containing numeric class values
checkbox :guilabel:`Calculate linear regression` optional if checked, calculate linear regression between the two input layers
:guilabel:`Script` script_tool add this function to the :ref:`script_tab`
:guilabel:`RUN` run run this function