This tool performs a Gaussian stretch on a raster image. The observed histogram of the input image is fitted to a normal Gaussian histogram. A histogram matching technique is used to map the values from the input image onto the output Gaussian distribution. The user must specify the standard deviation cutoff value and the number of tones (n) in the output image. The cutoff value is required because the Gaussian distribution is continuous and has no natural end-points. This tool is related to the more general Histogram Matching tool, which can be used to fit any frequency distribution to an input image.
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
stdDevCutoff = "3.0"
numTones = "256"
args = [inputFile, outputFile, stdDevCutoff, numTones]
pluginHost.runPlugin("GaussianStretch", 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"
def stdDevCutoff = "3.0"
def numTones = "256"
String[] args = [inputFile, outputFile, stdDevCutoff, numTones]
pluginHost.runPlugin("GaussianStretch", args, false)