Code Monkey home page Code Monkey logo

imagestitching's Introduction

ImageStitching

Image text Image text

1. Requirements

  • Windows10 + VS2015
  • C++
  • cimg library : http://www.cimg.eu/
  • opencv (For extracting features of images)

2. Main Procedure

  1. Image feature extraction with SIFT algorithm
  2. Image feature points matching with RANSAC algorithm
  3. Image blending with matched feature points

3. Intermediate Results

1) Image feature extraction with SIFT algorithm

relevant code: MySift.h and MySift.cpp

  • results of key feature points (each with a feature descriptor of 128 dimention) of two images:

Image text

2) Image feature points matching with RANSAC algorithm

relevant code: MyMatching.h and MyMatching.cpp

  • First do a coarse-grained feature points matching by calculating the distance of two feature descriptors, and regard the two points as matched if the distance is lower than some threshold. The matched points are lined together as shown below:

Image text

Image text

  • Clearly there exist many outliers, which can be removed by RANSAC algorithm as shown below. The algorithm works on selecting the main transforming direction with most inliers:

Image text

  • Removed the outliers which are conflicted with the selected transforming direction:

Image text

3) Image blending with matched feature points

relevant code: MyBlending.h and MyBlending.cpp

  • First use a simple translation method:

Image text

becomes

Image text

  • Then apply a RGB interpolation at fusion region A/B:

Image text

  • Stitched Result of two images

Image text

  • Repeat this procedure and get the stitched Result of all images

Image text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.