Image de-striping

This tool is used to reduce the prevalence of artifact horizontal or vertical stripes in an image. These stripes are apparent as either unusually bright or dark single-cell wide lines and often occur as a result of scanning. In the horizontal mode, the algorithm works as follows:

  1. Each grid cell is scanned in order and their values are retreived.
  2. For each visited cell, if the absolute difference in cell values in the rows above and below the cell exceeds the user-specified threshold value, the same analysis is carried out for the two cells on either side of the cell of interest.
  3. If each of the absolute differences calculated exceeds the threshold, the value of the cell of interest is replaced with the average of the cells in the rows above and below in the output image. Otherwise, the raw cell value is output.

The algorithm is carried in parallel to increase performance. One consequence is that the progress will not be updated while the analysis is carried out.

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"
threshold = "3.0"
direction = "horizontal"
args = [inputFile, outputFile, threshold, direction]
pluginHost.runPlugin("ImageDestriping", 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 threshold = "5.0"
def direction = "vertical"
String[] args = [inputFile, outputFile, threshold, direction]
pluginHost.runPlugin("ImageDestriping", args, false)

Credits: