Skip to content

An algorithm written in R which stitches 2 images (assuming they have a common image fragment)

Notifications You must be signed in to change notification settings

N-ihad/Image-Stitching-Algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stitching Images

A program written in R stitching 2 images assuming they have a common fragment

firstImage secondImage

Requirements to run the files

Packages to install/import:

  • R

    • RStudio (IDE)
    • png
    • readbitmap
    • rstudioapi
  • Python

    • from skimage.color import gray2rgb
    • from skimage.io import imread, imsave
    • from os import listdir, mkdir
    • from os.path import isfile, join, exists
    • from skimage.util import compare_images
    • import numpy as np
    • import argparse

Steps to take if you wish to test the algorithm on some dataset:

  1. Clone the project
  2. Populate folder "source_images" with initial images in bmp file format
  3. Run the python script "split.py" - it will split images in two parts putting them in folders 'left' and 'right' correspondingly
  4. Run the R script "imageStitching.R" - it will stitch images and put them all in folder 'stitched_images'
  5. If you want to compare images - run the python script "validate.py"

All stitched images are gonna be in 'stitched_images' folder

Steps to take if you only want to stitch two parts of an image:

  1. Clone the project
  2. Populate folders 'left' and 'right' with images you want to stitch. In 'left' folder - put left part of images, in 'right' put right part of images
  3. Run the R script "imageStitching.R"

All stitched images are gonna be in 'stitched_images' folder

DO NOT EDIT FOLDER NAMES

About

An algorithm written in R which stitches 2 images (assuming they have a common image fragment)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages