Real-Time Image Replacement via Homography

This code for this project is available here on Github.

For this project I used the SIFT feature extraction and detection algorithm to find features in a reference image and a target image. I then used the RANSAC algorithm to find the homography matrix that best aligns the reference image with the target image. The homography matrix is then used to warp the reference image to the target image. This is useful for augmented reality applications where you want to replace a target image with a reference image in real-time.

features

Here’s the final result where I replace the image of the research poster with the Mona Lisa: