I'm using arcpy.sa.SegmentMeanShift()
to produce a segmented raster in ArcGIS 10.7.1.
The segments in the output raster have values outside the range of values (1 to 248) in the input raster (-22 to 92)!
The new range of values in looks like a fit for stretched values (0-255). But I need the original values, not the stretched values.
How can I get the (mean) original values in my segmented raster?
I have tried arcpy.SetRasterProperties_management(inputRaster, data_type="PROCESSED")
, but this has not helped.
UPDATE: ESRI Rubbish...?
Turns out the problem doesn't always happen. I've changed my output to be in a geodatabase, and the problem went away! I haven't tested conclusively if this is why the problem went away... to busy moving on to other things.