/ Published in: Python
URL: http://mail.python.org/pipermail/image-sig/1997-March/000223.html
Expand |
Embed | Plain Text
h1 = Image.open("image1").histogram() h2 = Image.open("image2").histogram() rms = math.sqrt(reduce(operator.add, map(lambda a,b: (a-b)**2, h1, h2))/len(h1))
Comments
Subscribe to comments
You need to login to post a comment.

It's worth noting that this method only compares the histograms of the images, and not the images themselves. The title is extremely misleading.