Classification layer accuracy and area report (for stratified random sampling)

Estimates map accuracy and area proportions for stratified random sampling as described in Stehman (2014): https://doi.org/10.1080/01431161.2014.930207.

Observed and predicted categories are matched by name, if possible. Otherwise, categories are matched by order (in this case, a warning message is logged).

Usage:

  1. Start the algorithm from the Processing Toolbox panel.

  2. Select your predicted and observed layers, optionally add a stratification layer, then click run.

    ../../../../_images/strat_rand_samp_acc.png
  3. The accuracy report will automatically be opened in your web browser.

Parameters

Predicted classification layer [raster]

A classification layer that is to be assessed.

Observed categorized layer [layer]

A categorized layer representing a (ground truth) observation sample, that was aquired using a stratified random sampling approach.

Stratification layer [layer]

A stratification layer that was used for drawing the observation sample. If not defined, the classification layer is used as stratification layer.

Open output report in webbrowser after running algorithm [boolean]

Whether to open the output report in the web browser. Default: True

Outputs

Output report [fileDestination]

Report file destination.

Command-line usage

>qgis_process help enmapbox:classificationlayeraccuracyandareareportforstratifiedrandomsampling:

----------------
Arguments
----------------

classification: Predicted classification layer
    Argument type:    raster
    Acceptable values:
        - Path to a raster layer
reference: Observed categorized layer
    Argument type:    layer
    Acceptable values:
        - Path to a vector, raster or mesh layer
stratification: Stratification layer (optional)
    Argument type:    layer
    Acceptable values:
        - Path to a vector, raster or mesh layer
openReport: Open output report in webbrowser after running algorithm
    Default value:    true
    Argument type:    boolean
    Acceptable values:
        - 1 for true/yes
        - 0 for false/no
        - field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
        - expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
outClassificationPerformance: Output report
    Argument type:    fileDestination
    Acceptable values:
        - Path for new file

----------------
Outputs
----------------

outClassificationPerformance: <outputHtml>
    Output report