Code Monkey home page Code Monkey logo

image-stitching's Introduction

Image Stitching

Image Stitching algorithm with multi-panoramas, gain compensation, simple blending, and multi-band blending. Part of a project for the Computer Vision course of CentraleSupélec.

The implementation is strongly based on the 2007 paper Automatic Panoramic Image Stitching using Invariant Features by Matthew Brown and David G. Lowe : http://matthewalunbrown.com/papers/ijcv2007.pdf

Install

Clone the repository, and run the following command:

pip install -r requirements.txt

Usage

Simply put all your images in a single folder (possibly images of different panoramas), and run the following command:

python main.py /path/to/folder

For more options, see the command line help:

python main.py --help

You will find sample images in the folder samples/mountain for you to try the algorithm.

Examples

The below panoramas have been obtained with the default parameters.

car panorama

mountain panorama

centralesupelec panorama

Detailed description

The process contains multiple steps to obtain the best-looking panorama as possible. Namely, the following steps are performed:

  • Feature detection: the algorithm uses the SIFT algorithm to detect features in the images.
  • Feature matching: the algorithm matches the features between the images.
  • Connected components: the algorithm groups the images into connected components, each corresponding to a different panorama.
  • Panorama stitching: the algorithm stitches the images together.
  • Gain compensation: the algorithm compensates the gain of the images.
  • Blending: the algorithm blends the images together. Two different blending methods are available: simple blending and multi-band blending. The simple blending is the one used by default, as the multi-band blending is slower and gives more blurred results.

mountain panorama after panorama stitching Mountain panorama after panorama stitching without any compensation

mountain panorama after gain compensation Mountain panorama after gain compensation

mountain panorama with multi-band blending Mountain panorama with multi-band blending

mountain panorama after panorama stitching Mountain panorama with simple blending

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.