Find patch or class edge cells

This tool finds all grid cells in a raster image containing categorical data (i.e. classes or objects) that are located on the edge of patch or class features. The user must specify the name of the input image, which must be of a categorical data type, and the output image. Grid cells that are located along class or patch boundaries will be assigned their class value/patch ID. All other grid cells will be assigned a zero in the output image.

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
args = [inputFile, outputFile]
pluginHost.runPlugin("FindPatchOrClassEdgeCells", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.dep"
String[] args = [inputFile, outputFile]
pluginHost.runPlugin("FindPatchOrClassEdgeCells", args, false)

Credits: