Difference between revisions of "PIL patches"

From Noah.org
Jump to navigationJump to search
Line 8: Line 8:
 
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.
 
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.
  
[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"/>
 
<include src="/var/www/usr/local/apache2/htdocs/engineering/src/python/Imaging-1.1.6.patch"/>

Revision as of 17:33, 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"/>