- Related Resources:Add Image, Calculate Density, Calculate Distance, Calculate Travel Cost,Classify, Classify Pixels Using Deep Learning, Convert Feature to Raster, Convert Raster to Feature, Copy Raster, Create Image Collection, Create Viewshed, Delete Image, Delete Image Collection, Detect Objects Using Deep Learning, Determine Optimum Travel Cost Network, Determine Travel Cost Paths to Destinations, Determine Travel Cost Path as Polyline, Export Training Data for Deep Learning, Fill, Flow Accumulation, Flow Direction, Flow Distance, Generate Raster, Install Deep Learning Model, Interpolate Points, List Deep Learning Model Info, Nibble, Query Deep Learning Model Info, Stream Link, Summarize Raster Within, Train Classifier, Uninstall Deep Learning Model, Watershed
- Version Introduced:10.6.1
The Segment task groups together adjacent pixels having similar spectral and spatial characteristics into segments, known as objects. The input raster dataset can be clipped, resampled, and reprojected based on the setting.
The complete JSON rft (uri or by value), the complete XML rft (uri or by value), portal item ID, image service URL, cloud raster dataset, or shared raster dataset that will be segmented. If multiple inputs are given, then itemId takes priority. If a complete rft is given, then spectralDetail, spatialDetail, minimumSegmentSizeInPixels, and bandIndexes will not be honored. This option is used by ArcGIS Pro and web apps.
Syntax: A string describes the input raster.
The location where the service will generate the output raster.
Syntax: JSON object that describes the output raster.
Sets the level of importance given to the spectral differences of features in your imagery. Valid values range fro 1.0-20.0. A high value is appropriate when you have features you want to classify separately but have somewhat similar spectral characteristics. Smaller values create spectrally smoother outputs. For example, setting a higher spectral detail value for a forested scene will preserve greater discrimination between the different tree species, resulting in more segments.
Sets the level of importance given to the proximity between features in your imagery. Valid values range from 1-20. A high value is appropriate for a scene where your features of interest are small and clustered together. Smaller values create spatially smoother outputs. For example, in an urban scene you could classify an impervious surface using a smaller spatial detail, or you could classify buildings and roads as separate classes using a higher spatial detail.
Merges segments smaller than this size with their best fitting neighbor segment. This is related to the minimum mapping unit for a mapping project. Units are in pixels.
Defines which 3 bands are used in segmentation. Choose the bands that visually discriminate your features of best interest. The value is a string of three numbers separated by three commas.
If the value is false or 0, the tool will not run to remove tiling artifacts after segmentation. The result may seem blocky at some tiling boundaries.
When you submit a request, the task assigns a unique job ID for the transaction.
"jobId": "<unique job identifier>",
"jobStatus": "<job status>"
After the initial request is submitted, you can use the jobId to periodically check the status of the job and messages as described in Checking job status. Once the job has successfully completed, you use the jobId to retrieve the results. To track the status, you can make a request of the following form:
https://<raster analysis tools url>/Segment/jobs/<jobId>
When the status of the job request is esriJobSucceeded, you can access the results of the analysis by making a request of the following form:
https://<raster analysis tools url>/Segment/jobs/<jobId>/results/outputRaster
The following is a sample request URL for Segment:
JSON request example
JSON response example
The response returns the outputRaster output parameters, which has properties for parameter name, data type, and value. The content of value is always the output raster dataset itemId and the image service URL.
"url": "https://<server name>/arcgis/rest/services/Hosted/<service name>/ImageServer"