Comparing images (and how Github's image diff works)

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...

via http://news.ycombinator.com/item?id=2459033

234 views and 0 responses