Depending on how sophisticated you want to be here, it is pretty easy to get the pixel values from a BufferedImage and just compare those values to those you get from another image. Then you can create a third image with those diffs.
Check out getRGB() methods in the BufferedImage API for more info.
Chet.
Michael Saunders wrote:
I don't have any experience processing images in Java 2D / JAI so I hope that someone can point me in the right direction.
Problems:
1. I would like to create a simple utility program that will take two images and put them in a card layout and then continuously cycle through them so the user can perform a visual diff between the two images to spot any changes. 2. I would also like to be able to create a third image that is a diff of the other two so the differences can be easily identified.
Questions: The displaying of the images in a card layout doesn't seem too hard but I am not certain how to go about creating the "diff" image. Can I do this with Java 2D as-is or do I need JAI or JMF? What API's should I be looking for? Do I read the pixels myself and perform a diff or is there some high level filter API that I can pass the images through? As you can probably tell from the questions I really am not sure where I should start. If you can point me in the right direction I would really appreciate it. Any books or on-line articles would be handy also.
Michael =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
