ArcGIS Desktop

  • Documentation
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Update Accuracy Assessment Points

Available with Spatial Analyst license.

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Updates fields in the attribute table to compare ground truth points to the classified image. It can also update the set of points used for accuracy assessment to reflect changes in the classification scheme or in the ground truth data.

Accuracy assessment takes known points and uses them to assess the validity of the classification model.

Usage

  • Update the attribute table of a feature class that represents accuracy assessment points. If you created the feature class using the Create Accuracy Assessment Points tool, there will be a field for GROUND_TRUTH and for CLASSIFIED. This tool can start with either ground truth data and compare it to the classified output, or it can start with the classified output and compare that to ground truth data.

    These two fields are then compared using the Compute Confusion Matrix geoprocessing tool.

  • You can also update the set of points with data from an additional input raster or feature class.

  • You can manually update the GROUND_TRUTH field if you want to change or identify a set of points.

Syntax

UpdateAccuracyAssessmentPoints (in_class_data, in_points, out_points, {target_field})
ParameterExplanationData Type
in_class_data

Input classification image or other thematic GIS data in raster or feature class format.

Typical data is a classification image (single band, integer data type) or the training polygon output from an ArcMap image classification toolbar.

If using polygons as input, only use those that are not used as training samples. You can also use land-cover data in shapefile or feature class format.

Raster Layer | Feature Layer
in_points

The point feature class providing the accuracy assessment points to be updated.

All points from this input will be copied to the updated output feature class, and the target_field will be updated from the input raster or feature class data.

Feature Layer
out_points

The output point feature class which contains the updated random point field for accuracy assessment purposes.

Feature Class
target_field
(Optional)

There are two options: CLASSIFIED and GROUND_TRUTH. If you want to assess the accuracy of a classified image, choose CLASSIFIED. If the input is considered ground truth or reference data, such as a training polygon shapefile or feature class, choose GROUND_TRUTH.

  • CLASSIFIED —Creates a field in the attribute table that shows the corresponding value from the classified image for each point.
  • GROUND_TRUTH —Appends points to an existing set of accuracy assessment points.
String

Code sample

UpdateAccuracyAssessment example 1 (stand-alone script)

This example updates the points used for accuracy assessment.

import arcpy
from arcpy.sa import *

arcpy.gp.UpdateAccuracyAssessmentPoints("aapnt1.shp", "grndtru.tif", "aapnt2.shp", "GROUND_TRUTH")

Environments

  • Auto Commit
  • Cell Size
  • Compression
  • Current Workspace
  • Extent
  • Geographic Transformations
  • Mask
  • Output CONFIG Keyword
  • Output Coordinate System
  • Raster Statistics
  • Scratch Workspace
  • Snap Raster
  • Tile Size

Licensing information

  • ArcGIS Desktop Basic: Requires Spatial Analyst
  • ArcGIS Desktop Standard: Requires Spatial Analyst
  • ArcGIS Desktop Advanced: Requires Spatial Analyst

Related topics

  • An overview of the Segmentation and Classification toolset
  • What is image classification?

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal