You can use the Pedestrian Infrastructure Classification model in the Classify Pixels Using Deep Learning tool available in the Image Analyst toolbox in ArcGIS Pro.
- Download the model.
- Add the imagery layer in ArcGIS Pro.
- Add 8-bit, RGB high-resolution (10 - 30 centimeters) imagery and zoom in to an area of interest.
- Click Tools under the Analysis tab on the ribbon to open the Geoprocessing pane.
- Click the Toolboxes tab in the Geoprocessing pane, and expand Image Analyst Tools. Click the Classify Pixels Using Deep Learning tool under Deep Learning.
- Set the variables on the Parameters tab as follows:
- Input Raster—Raster, mosaic dataset, or image service (10 - 30 centimeters spatial resolution) that can be classified.
- Output Raster Dataset—The name of the raster that will contain the result.
- Model Definition—This parameter value can be an Esri model definition JSON file (.emd), a JSON string, or a deep learning model package (.dlpk).
- Arguments—Change the values of the arguments if
required.
- batch_size—Number of image tiles processed in each step of the model inference. This depends on the memory of the graphics card.
- test_time_augmentation —Performs test time augmentation while predicting. If true, predictions of flipped and rotated variants of the input image will be merged into the final output.
- Set the variables on the Environments tab as follows:
- Processing Extent—Select Current Display Extent or any other option from the given options.
- Cell Size—Change if required.
Note:
0.10 - 0.30 meters is the expected spatial resolution.
- Processor Type—Select CPU or GPU as needed.
Note:
If GPU is available, it is recommended that you select GPU and set GPU ID to the GPU to be used.
- Click Run.
Once processing is complete, the classified output of the raster layer is added to the map.
- Right-click the output layer and click Symbology to apply appropriate symbology on the output raster to view the classified features in a better way.
- Select Unique Values under Primary symbology in the Symbology pane. Apply different colors to different features as per your preference. We have applied No color to the background class for better visualization.
- Convert the raster to polygons. A polygon feature layer can be used for further analysis, which can be difficult with a raster output.
- To convert the classified raster to polygon features, you must first run the Int tool, which converts each cell value of a raster to an integer. Click the Toolboxes tab in the Geoprocessing pane, and go to Image Analyst Tools, then the Math toolset, then the Trigonometric toolset, and the Int tool. Click the Int tool.
- Set the variables on the Parameters tab as follows:
- Input raster or constant value—The input raster to be converted to integer. Give the output of the Classify Pixels Using Deep Learning tool generated in previous steps as input here.
- Output raster—The output raster name.
- Click Run. The raster with integer cell values will be added to the map once processing is completed.
- Click the Toolboxes tab in the Geoprocessing pane, expand Conversion Tools, and browse to the Raster to Polygon tool under From Raster.
- Set the variables on the Parameters tab as follows:
- Input raster—Add the output of the Int tool generated in previous steps as input here.
- Field—Set the field used to assign values from the cells in the input raster to the polygons in the output dataset. Use an integer or a string field.
- Click Run. The feature layer will be added to the map once processing is completed.
- Right-click the output layer and click Symbology to apply appropriate symbology on the output feature layer, to view the classified features in a better way.
- Select Unique Values under Primary symbology in the Symbology pane and select gridcode in Field 1. Apply different colors/patterns to different features as per your preference. We have applied No color to the background class for better visualization.
- Smoothen the polygons.
- Click the Toolboxes tab in the Geoprocessing pane, expand Cartography Tools, and browse to the Smooth Polygon tool under Generalization.
- Set the variables on the Parameters tab as follows:
- Input Features—Add the output of the Raster to Polygon tool generated in previous steps as input here.
- Smoothing Tolerance—Specify a tolerance used by the Polynomial Approximation with Exponential
Kernel (PAEK) algorithm.
A tolerance must be specified, and it must be greater than zero. You can choose a preferred unit; the default is the feature unit.
- Click Run. Once processing is completed, the final output is added to the map as shown below.