Return to Snippet

Revision: 799
at August 9, 2006 08:42 by sudarkoff


Initial Code
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))

Initial URL
http://mail.python.org/pipermail/image-sig/1997-March/000223.html

Initial Description

                                

Initial Title
Compare two PIL images in Python

Initial Tags
python

Initial Language
Python