This tool can be used to perform a cross-tabulation on two input raster images containing categorical data, i.e. classes. It will output a contingency table in text format.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputFile1 = wd + "input1.dep"
inputFile2 = wd + "input2.dep"
args = [inputFile1, inputFile2]
pluginHost.runPlugin("CrossTabulation", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputFile1 = wd + "input1.dep"
def inputFile2 = wd + "input2.dep"
String[] args = [inputFile1, inputFile2]
pluginHost.runPlugin("CrossTabulation", args, false)