curryage
curryage

Reputation: 491

How to identify changes in two images of same object

I have two images which I know represent the exact same object. In the picture below, they are referred as Reference and Match.

Reference and Match

The image Match can undergo the following transformations compared to Reference:

  1. The object may have changed its appearance locally by addition(e.g. dirt or lettering added to the side) or omission (side mirror has been taken out).

  2. Stretched or reduced in size horizontally only (it is not resized in vertical direction)

  3. Portions of Reference image are not present in Match (shaded in red in Reference Image).

Question: How can the regions which have "changed" in the ways mentioned above be identified ?

Idea#1: Dynamic Time Warping seems like a good candidate once the beginning and end of Match image (numbered 1 and 3 in the image) are aligned with corresponding columns in Reference Image, but I am not sure how to proceed.

Idea#2: Match SIFT features across images. The tessellation produced by feature point locations breaks up the image into non-uniform tiles. Use feature correspondences across images to determine which tiles to match across images. Use a similarity measure to figure out any changes.

Upvotes: 3

Views: 1454

Answers (1)

denver
denver

Reputation: 3135

You might want to consider an iterative registration algorithm. Basically you want to perform optimization to find the parameters of the transform, in your case horizontal scaling and horizontal translation. Once you optimize the parameters you will have the transformation between the two images, transform one to match the other, and can then use a subtraction to identify the regions with differences.

For registration take a look at the ITK library. You can probably do a gradient decent optimization using mutual information as the metric. It has a number of different transforms that will capture translation and scaling. The code should run quickly on the sample images you show.

Upvotes: 4

Related Questions