Compare images for differences

This tool can be used to compare two images for statistically significant differences. It performs either a paired-sample t-test or a two-sample Kolmogorov–Smirnov (K-S) test on the two images. The user can optionally choose to take a random sub-sample of the pixel data for the test, which is advisable because given a sufficiently large sample, extremely small and non-notable differences can be found to be statistically significant, and statistical significance says nothing about the practical significance of a difference.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
inputFile1 = wd + "input1.dep"
inputFile2 = wd + "input2.dep"
testType = "t-test"
sampleSize = "not specified" # use all cells
args = [inputFile1, inputFile2, testType, sampleSize]
pluginHost.runPlugin("CompareImagesForDifferences", 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"
def testType = "k-s test"
def sampleSize = "1000"
String[] args = [inputFile1, inputFile2, testType, sampleSize]
pluginHost.runPlugin("CompareImagesForDifferences", args, false)

Credits: