Select to view content in your preferred language

key property set to Segmented

839
2
04-22-2021 02:16 AM
Labels (1)
Xabierr
New Contributor III

Hi there,

Is there a way to switch the key property of any raster to "segmented" in ArcGis Pro 2.7?

 

0 Kudos
2 Replies
DrVSSKiran
Occasional Contributor II

Hi,

You may write a small python script to compute segment  attributes in ArcGIS Pro. 

 

Refer example of Compute Segment Attributes script.

import arcpy from arcpy.sa import * compute_att = ComputeSegmentAttributes( "c:/test/moncton_seg.tif", "c:/test/moncton.tif", "COLOR;MEAN;STD;COUNT;COMPACTNESS;RECTANGULARITY") compute_att.save("c:/test/moncton_computeseg.tif")

by Anonymous User
Not applicable

You can use the Set Raster Properties tool to set the Segmented key to True.

0 Kudos