CG:SKEELOGY
CG:SKEELOGY
CATEGORIES
   REELS
       + demo reels (2)
   PROJECTS
       + games (4)
       + VFX & animations (4)
   PROGRAMMING
       + simulations (8)
       + computer vision (4)
       + rigging & deformation (4)
       + computer graphics (3)
       + artificial intelligence (2)
       + game technologies (2)
   CG
       + rigs (7)
       + models (7)
       + effects & simulations (3)
   TUTORIALS
       + physics simulation (1)
   ME
       + honours & awards (8)
       + events (7)
       + updates (3)
FEATURED PROJECTS
Soft Body Tutorial: Program soft bodies in XNA!
Cloud Guardian: Shape the Orb to fix clouds!
Muskeelar: Muscle system for games
LATEST UPDATES
  + Now On Twitter   + CG:Skeelogy v1.1: The Web 2.0 Version   + Best Physics Knowledge Base Entry In Intel Havok Physics Contest!   + Community Voting Prize In Intel Havok Physics Contest   + Working at Double Negative in London
TAGS
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
Solo
Photo Stitching
@ programming > computer vision
SECTION MENU
     + Face Image Relighting
     + Photo Stitching
     + SVD Image Compression
     + Image Morphing

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

  • Share/Save/Bookmark
Tags: , ,

Related posts


2 comments:

  1. jatin says:

    nice concept and the output images are amazing….
    can u share this code with me…even i use MATLAB but never done or thought of such a thing before….
    good work!

  2. Skeel says:

    Hey, thanks for the great comment!

    I don’t have the codes with me anymore though, sorry about that.

Leave a comment:


Allows tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
CG:SKEELOGY
ABOUT ME
I have experience with physics simulation programming, character rigging and R&D on anatomical and deformable models. In my free time, I work on small personal projects such as casual games and tools development.
I am currently working at Double Negative Visual Effects in London.
MY OTHER SITES
SUBSCRIBE TO SITE
SHARE THIS SITE
Copyright © 2003-2010.
All works are original ones by Skeel, unless otherwise stated.