Average overlay

This tool can be used to find the average value in each cell of a grid from a set of input images. It is therefore similar to the Weighted Sum tool except that each input image is given equal weighting. This tool has been optimized for parallel processing.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
# You may have multiple input files but they must
# be separated by semicolons in the string.
inputFiles = wd + "input1.dep" + ";" + wd + "input2.dep" + ";" + wd + "input3.dep"
outputFile = wd + "output.dep"
args = [inputFiles, outputFile]
pluginHost.runPlugin("AverageOverlay", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
// You may have multiple input files but they must
// be separated by semicolons in the string.
def inputFiles = wd + "input1.dep" + ";" + wd + "input2.dep" + ";" + wd + "input3.dep"
def outputFile = wd + "output.dep"
String[] args = [inputFiles, outputFile]
pluginHost.runPlugin("AverageOverlay", args, false)

Credits: