Thursday, August 15, 2013

Image stiching in OpenCV

Reference to

Main steps of the code:
  1. Load two images;
  2. Convert to gray scale;
  3. Using SURF detector to find SURF descriptor in both images;
  4. matching the SURF descriptor using FLANN Matcher;
  5. Postprocessing matches to find good matches
  6. Using RANSAC to estimate the Homography matrix using the matched SURF descriptors;
  7. Warping the images based on the homography matrix

The image shows the definition of Homography which transforms 2d Planar point to the image plane. 

 The following image is shows the initial image and the matched SURF features of the two. Homography is derived from the left image to the right image.

Stiching image result.

Source Code

No comments:

Post a Comment