CG:Skeelogy
FEATURED
ARCHIVES
 
 
CURRENTLY VIEWING
PHOTO STITCHING
Wrote a MATLAB script to stitch several overlapping images together to form a panorama
DATE
TYPE
EFFORT
Sep 2007
Image Mosaicking
Individual
Photo Stitching
@ programming > computer vision
SECTION MENU

This is a script written in MATLAB to stitch several overlapping images together. The user manually marks corresponding pairs of points between adjacent images first. The script is then executed to calculate the forward homographies, final mosaic size and then the backward homographies. Finally, the destination scan algorithm is used to produce the final image. Alpha blending was also implemented to remove visible seams that might arise at the edges of the original images.

I took four images of the Fullerton Hotel in Singapore to prepare for the photo stitching exercise:

2D morphing from cat to dog (and back)

2D morphing from cat to dog (and back)

2D morphing from cat to dog (and back)

2D morphing from cat to dog (and back)
The original overlapping images to be stitched up

I then marked out 16 pairs of corresponding points for each pair of adjacent images, although theorectically 4 pairs will be sufficient. A sample of the corresponding points for a pair of adjacent images are as such:

2D morphing from cat to dog (and back)

2D morphing from cat to dog (and back)
The 16 corresponding points for images 1 and 2

Once all the markings have been done, I executed the MATLAB script and the final mosaic is obtained. Alpha blending is applied to remove visible seams that might exist after the images are placed together.

2D morphing from cat to dog (and back)
Final mosaic formed from stitching the four overlapping images


 
ABOUT ME
Skeel Lee Skeel Lee
skeel@skeelogy.com
Facebook Google+ Twitter Tumblr
YouTube Vimeo Flickr Pinterest
Senior FX TD / R&D
Digital Domain 3.0 (Previously at Sony Pictures Imageworks, MPC, Industrial Light & Magic, Double Negative)
LinkedIn IMDb GitHub Stack Overflow
I am a Senior Technical Director with strong interests in both tech and art. My life evolves round VFX, photography, software engineering, tools programming and generally anything that looks / sounds cool.
I have done a variety of CG programming, including fluid sims, muscles, soft/rigid bodies, raytracing etc. These knowledge complement the visual works that I do as a TD in VFX.
I was interviewed by The Straits Times in May 2014 for my VFX work in X-Men: Days of Future Past.