Stitching image using SIFT and Homography

This Matlab tutorial I use SIFT, RANSAC, and homography to find corresponding points between two images. Here I have used vlfeat to find SIFT features.

Full code is available at my GitHub repository

Major steps are:

0.Adding vlfeat to your Matlab workspace:

 

1.Detect key points and extract descriptors. In the image below you can see some SIFT key points and their descriptor.

 

 

 

2.Matching features:

 

3.Pruning features

In this step, I only took first k top matches.

number_of_top_matches_to_select=90;

 

4.Estimating transformation using RANSAC

I used RANSAC to estimate the transformation.

 

5.Compute optimal transformation

Finally, I used the least square method to find the affine transformation between two images.

 

Leave a Reply

avatar
  Subscribe  
Notify of