Comparing images (and how Github's image diff works)
April 18 2011, 2:56 PM
After loading in the two images, we’ll loop over the pixels of the first one. If the pixel is the same as the one in the second image, we’ll add it to the
diff
array. When we’re done, we’ll draw a bounding box around the area that contains the changes:A problem with this approach...