regression tests: fix ncc==0 false-fails when using NCC image comparison

felipesanches-svg
don bright 2011-12-27 21:17:04 -08:00
parent 546ed16904
commit 0ff0d2b68a
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def compare_png(resultfilename):
elif compare_method=='NCC':
thresh = 0.95
ncc_err = float(output.strip())
if ncc_err > thresh: return True
if ncc_err > thresh or ncc_err==0.0: return True
else: print >> sys.stderr, ncc_err, ' Images differ: NCC comparison < ', thresh
return False