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()
global options
optparser = optparse.OptionParser(
- usage="\n\t%prog [options] <ref_prefix> <src_prefix>",
- version="%%prog")
+ usage="\n\t%prog [options] <ref_prefix> <src_prefix>")
optparser.add_option(
'-o', '--output', metavar='FILE',
type="string", dest="output", default='index.html',