Difference between revisions of "PIL patches"

From Noah.org
Jump to navigationJump to search
Line 10: Line 10:
 
[http://www.noah.org/engineering/src/python/Imaging-1.1.6.patch Download patch]
 
[http://www.noah.org/engineering/src/python/Imaging-1.1.6.patch Download patch]
  
<include src="/var/www/usr/local/apache2/htdocs/engineering/src/python/Imaging-1.1.6.patch" highlight="diff" />
+
<include src="/var/www/usr/local/apache2/htdocs/engineering/src/python/Imaging-1.1.6.patch" highlight="c++" />

Revision as of 18:39, 2 June 2007

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 src="/var/www/usr/local/apache2/htdocs/engineering/src/python/Imaging-1.1.6.patch" highlight="c++" />