vmtkimagecompare

Description

compares an image against a reference

Input arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
disabledDisabledbool10disable execution and piping
iImagevtkImageData1the input image
ifileImageInputFileNamestr1filename for the default Image reader
rReferenceImagevtkImageData1the reference image to compare against
rfileReferenceImageInputFileNamestr1filename for the default ReferenceImage reader
methodMethodstr1["subtraction","range"]method of the test
toleranceTolerancefloat11e-08tolerance for numerical comparisons

Output arguments

ArgumentVariableTypeLengthRangeDefaultDescription
idIdstr10script id
handleSelfself1handle to self
resultResultbool1Output boolean stating if images are equal or not
logResultLogstr1Result Log