Posted on 2005-05-03
If I have 2 sequential screenshots stored as BufferedImages, is it possible to compare them to get the differences. I'd like to take the differences and send them over a socket to a server and be able to reconstitute the image on the fly. Essentially I'd only be transmitting image changes so that i can achieve a more efficient "stream". On the server side, i would accept the differences and apply them to the current image.
1) send initial image from client to server
2) client takes new picture and compares with previous
3) image differences are sent to server
4) server takes differences and applies to previous image
I hope that my question is clear. What type of data storage object would be efficient for thsi? Just a simple array as is used as the data backing of a BufferedImage?