Map validation
From AWF-Wiki
(Difference between revisions)
(→Accuracy assessment and area estimation with R) |
(→QGIS Processing toolbox with OTB plugin) |
||
Line 4: | Line 4: | ||
# Select the output file name with the extension '''.csv''' under {{button|text=Matrix output}}. | # Select the output file name with the extension '''.csv''' under {{button|text=Matrix output}}. | ||
# The validation data can be in vector or raster format. Select as Ground truth {{button|text=vector}}. | # The validation data can be in vector or raster format. Select as Ground truth {{button|text=vector}}. | ||
− | # Set the validation file ''' | + | # Set the validation file '''clip_regular_points.shp''' as {{button|text=Input reference vector data}}. |
− | # Set the Field name with the class code ''' | + | # Set the Field name with the class code '''Code'''. |
# Click {{button|text=Run}}. | # Click {{button|text=Run}}. | ||
− | # Open the CSV output file with Libre Office Calc or MS Excel. Calculate User accuracies, Producer accuracies, Overall accuracy and | + | # Open the CSV output file with Libre Office Calc or MS Excel. Calculate User accuracies, Producer accuracies, Overall accuracy and F-Scores. |
[[File:qgis_otb_confusionMatrix.png|400px]] | [[File:qgis_otb_confusionMatrix.png|400px]] | ||
+ | |||
= Accuracy assessment and area estimation with R = | = Accuracy assessment and area estimation with R = | ||
FAO implemented a map validation and stratified area estimation tool based on R, Rstudio and the Shiny package. | FAO implemented a map validation and stratified area estimation tool based on R, Rstudio and the Shiny package. |
Latest revision as of 19:02, 28 June 2020
Contents |
[edit] QGIS Processing toolbox with OTB plugin
- Type into the search box of Processing tools Confusion and double click ComputeConfusionMatrix.
- Set the classified map as Input image.
- Select the output file name with the extension .csv under Matrix output.
- The validation data can be in vector or raster format. Select as Ground truth vector.
- Set the validation file clip_regular_points.shp as Input reference vector data.
- Set the Field name with the class code Code.
- Click Run.
- Open the CSV output file with Libre Office Calc or MS Excel. Calculate User accuracies, Producer accuracies, Overall accuracy and F-Scores.
[edit] Accuracy assessment and area estimation with R
FAO implemented a map validation and stratified area estimation tool based on R, Rstudio and the Shiny package. The method is based on Olofsson et al. 2013, 2014) If not already installed on your laptop: install R, RStudio and Rtools. Start Rstudio and type into the console:
install.packages("shiny", dependencies = TRUE)
[edit] Create validation sample points with a stratified random sampling design
Start Rstudio and type:
library(shiny) options(shiny.launch.browser = TRUE) runGitHub("openforis/accuracy-assessment",subdir="aa_design")
[edit] Area estimation
Start Rstudio and type:
library(shiny) options(shiny.launch.browser = TRUE) runGitHub("openforis/accuracy-assessment",subdir="aa_analysis")