How to find rectangle of difference between two images

Posted by Simon Brown on Stack Overflow See other posts from Stack Overflow or by Simon Brown
Published on 2010-04-24T14:06:45Z Indexed on 2010/04/24 14:13 UTC
Read the original article Hit count: 243

Filed under:
|
|
|
|

I have two images the same size. What is the best way to find the rectangle in which they differ. Obviously I could go through the image 4 times in different directions, but i'm wondering if there's an easier way.

Example:

first image

second image

difference

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#