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

Create Accuracy Assessment Points

Available with Spatial Analyst license.

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

Summary

Creates randomly sampled points for post-classification accuracy assessment.

A common practice is to randomly select hundreds of points and label their classification types by referencing reliable sources, such as field work or human interpretation of high-resolution imagery. The reference points are then compared with the classification results at the same locations.

Usage

  • This tool creates a set of random points and assigns a class to them based on reference data.

  • This tool can also assign a class to the set of points using a previously classified image or a feature class.

  • After running this tool, you can edit the table if you want to manually assign a class to some or all of the points.

Syntax

CreateAccuracyAssessmentPoints (in_class_data, out_points, {target_field}, {num_random_points}, {sampling})
ParameterExplanationData Type
in_class_data

Input classification image or other thematic GIS data reference data. The input can be a raster or feature class.

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. They can also be GIS land-cover data in shapefile or feature class format.

Raster Layer; Mosaic Layer; Feature Layer
out_points

The output point shapefile or feature class that contains the random points to be used for accuracy assessment.

Feature Class
target_field
(Optional)

Choose whether your input data is a classified image or ground truth data.

  • CLASSIFIED —Select this option if your input is a classified image. This is the default.
  • GROUND_TRUTH —Select this option if your input is reference data.
String
num_random_points
(Optional)

The total number of random points that will be generated.

The actual number may exceed but never fall below this number, depending on sampling strategy and number of classes. The default number of randomly generated points is 500.

Long
sampling
(Optional)

Specify a sampling scheme to use.

  • STRATIFIED_RANDOM —Create points that are randomly distributed within each class, where each class has a number of points proportional to its relative area. This is the default
  • EQUALIZED_STRATIFIED_RANDOM —Create points that are randomly distributed within each class, where each class has the same number of points.
  • RANDOM —Create points that are randomly distributed throughout the image.
String

Code sample

CreateAccuracyAssessment example 1 (stand-alone script)

This example creates random points for accuracy assessment.

import arcpy
from arcpy.sa import *

arcpy.gp.CreateAccuracyAssessmentPoints("cls.tif", "aapnt1.shp", "COMPUTED", "1500", "RANDOM")

Environments

  • Auto Commit
  • Current Workspace
  • Extent
  • Geographic Transformations
  • Output CONFIG Keyword
  • Output Coordinate System
  • Scratch Workspace

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
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal