PIL: Getting a two color difference between images

Lie Ryan lie.1296 at gmail.com
Sat Oct 25 18:11:18 EDT 2008


> Kevin D. Smith:
>> What I want is a two color output image: black where the image wasn't
>> different, and white where it was different.<

Use the ImageChops.difference, which would give a difference image. Then 
map all colors to white except black using Image.point() 




More information about the Python-list mailing list