I'm curious to create a 'difference' between 2 images that can be applied to turn one into the other. I believe XOR should do this (?) and so "composite -compose difference" should do the trick (?)
In particular I'm curious whether such differences can be JPEG compressed and used to update a webcam server a bit more efficiently than just sending regular JPEGs - kind of like a rudimentary MPEG perhaps.
It seems to get almost there, but leaves a 'halo' around image elements which spoils the effect. Also some 'ghost' effects. I tried creating these simple example PNGs




Commands used -
Code: Select all
composite 1.png 2.png -compose difference 3.png
composite 1.png 3.png -compose difference 4.png

If I've got the wrong end of the stick somewhere, just let me know too
