PIL patches

From Noah.org
Revision as of 17:14, 2 June 2007 by Root (talk | contribs)
Jump to navigationJump to search

This is a patch against the Python Imaging Library Imaging-1.1.6. This add the method ImageChops.difference_rms(im1, im2) which returns a float giving the RMS difference between the two given images. This is about 10 times faster than doing it in Python. This can be used to detect changes in images (motion) or to compare the effect of different image operations. If the two images are exactly equal then differnce_rms() will return 0.0. As the images diverge the value returned will increase. It will always be a positive number. In general, the greater the difference between the two images then the greater the RMS difference will be.

Download patch <include url="http://www.noah.org/engineering/src/python/Imaging-1.1.6.patch.html" iframe /> <include url="/var/www/usr/local/apache2/htdocs/engineering/src/python/Imaging-1.1.6.patch"/>