This is a program to stitch two images
The program uses ORB descriptor of opencv and BruteForce Matcher to identify keypoints and features between two images.Then calulating the Homography from the features, stitches two images and creates a mosaic image.
version 1.0.0
1.Numpy
2.opencv
3.argparse
Use the imageA and imageB to be stitched in any of the following formats
-
Windows bitmaps - *.bmp, *.dib
-
JPEG files - *.jpeg, *.jpg, *.jpe
-
JPEG 2000 files - *.jp2
-
Portable Network Graphics - *.png
-
WebP - *.webp
-
Portable image format - *.pbm, *.pgm, *.ppm
-
Sun rasters - *.sr, *.ras
-
TIFF files - *.tiff, *.tif
In the terminal, execute:
python stitch.py -one "PATH_TO_FIRST_IMAGE" -two "PATH_TO_SECOND_IMAGE"
or
python stitch.py --image_one "PATH_TO_FIRST_IMAGE" --image_two "PATH_TO_SECOND_IMAGE"
showMatch.jpg - An image showing the features that are matched between the two input images
stitched.jpg - The resulting mosaic from the stitching
Nikhil S Hubballi