Incorrect result of image subtraction
问题 I wanted to subtract two images pixel by pixel to check how much they are similar. Images have the same size one is little darker and beside brightness they don't differ. But I get those little dots in the result. Did I subtract those two images rigth? Both are bmp files. import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class Main2 { public static void main(String[] args) throws Exception { int[][][] ch = new int[4][4][4]; BufferedImage image1 =