GithubHelp home page GithubHelp logo

image-stitching's Introduction

Image Stitching

Introduction

Image stitching combines two or more image into a single image.
This project is the second assignment for the Computer Vision course (Alexandria University).

How it works

Requirements

This project requires the following python libraries:

  • Numpy
  • CV2
  • Tkinter

Downloading the project

  1. Clone the repository

git clone https://github.com/marwansalem/image-stitching

  1. Go to the project directory

cd image-stitching

  1. Run the code

python stitch.py

Guide

Upon running the project user asked to input the first image,
then the second image. Load first image

Then user is asked either to mark the correspondence points on the image, or to load it from a text file.
points prompt
If the user choose to mark the points, the two images are opened in two windows,
and the user can mark the corresponding points on the the two images using mouse clicks.
After choosing the points press any keyboard key to continue.

4 points at least must be chosen.

Mark points
However, adding more points will generally make the result better.

If the user chooses not to mark the points, they can load them from a text file, which has the following format.
The file must have a line for each pair of corresponding points. The line will be in this format:

x1,y1,x2,y2

Where x1,y1 are the coordinates of the point in the first image, and x2,y2 are the coordinates of the corresponding points in the second image.
A text file sample.

106,575,577,610
310,599,774,629
107,505,570,544
175,508,633,547

After the correspondence points are marked or loaded from a file, they are shown on the two images, with the blue color for the first image, and red for the first image. Then press enter to continue. Correspondence points

Finally the stitched image will be shown.

Stitched image

The user is asked whether save the output or not.
Save image prompt points

Then is asked whether save the correspondence points as a text file or not.
Save points as text

image-stitching's People

Contributors

marwansalem avatar

Watchers

James Cloos avatar  avatar

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.