Skip to content

Instantly share code, notes, and snippets.

@antimatter15
Created January 11, 2010 22:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save antimatter15/274687 to your computer and use it in GitHub Desktop.
Save antimatter15/274687 to your computer and use it in GitHub Desktop.
#Quantify the difference between two images as a number
h1 = ImageChops.difference(im,lastim).histogram()
rms = reduce(operator.add, map(lambda a: math.sqrt(a),h1))/len(h1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment