* @param image1
* @param image2
* @return
*/
public WriteableRaster computeDifference(Raster image1, Raster image2) {
Dimension size = computeDiffSize(image1, image2);
if (size == null) {
size = new Dimension(Math.max(image1.getSize().width, image2.getSize().width),
Math.max(image1.getSize().height, image2.getSize().height));
}
WriteableRaster res = createDiffRaster(image1, image2);
double[] colors1 = new double[image1.getSupported().length];
double[] colors2 = new double[image2.getSupported().length];