Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Image Stitching

Image Stitching is one of the technique wherein we have several images with overlapping areas. The output is a unification of these images. It is important to note that a full scene from the input image must be preserved in the process. We use scale invariant features transform(SIFT) to extract local features of the input images, K nearest neighbors algorithms to match these features and Random sample consensus(Ransac) to calculate the homograph matrix, which will be used for image warping. Finally we apply a weighted matrix as a mask for image blending.

Workflow of the Algorithm

  • Input any image that you need to Perform image stitching.
  • Once the images are read,we need to extract distinctive keypoints from the image using different feature detection algorithms (SIFT, SURF, ORB). In this,I have used ORB algorithm from OpenCv for feature detection.
  • After we specify the number of keypoints that we want to detect we will detect keypoints and descriptors in both images using the function orb.detectAndCompute() provided by OpenCv.
  • Once we have extracted the features, the next step is to match these features between our two images.In this, I have used Brute Force matcher to match the descriptors.
  • Next step is to computing homography matrix by applying RANSAC algorithm. Then, we will use this matrix to calculate the warping transformation based on matched features.
  • Once the wrapping function is done, our images are ready to stitch and you will get a seamless panaromic image of the two input images after stitching
  • Sample Images

    Demo 1

    Detecting Points

    Matching Points

    Stitched Image

    .Demo 2

    Detecting Points

    Matching Points

    Stitched Image