From: José Fonseca Date: Sun, 4 Dec 2011 15:31:31 +0000 (+0000) Subject: Fix snapdiff ae method. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=01b8c7b075770693b19659cf4fea5338185af4f8;p=apitrace Fix snapdiff ae method. --- diff --git a/scripts/snapdiff.py b/scripts/snapdiff.py index 13e5069..9253d16 100755 --- a/scripts/snapdiff.py +++ b/scripts/snapdiff.py @@ -87,7 +87,7 @@ class Comparer: bits = -math.log(rel_error)/math.log(2.0) return bits - def ae(self): + def ae(self, fuzz = 0.05): # Compute absolute error # TODO: this is approximate due to the grayscale conversion h = self.diff.convert('L').histogram()