CG:SKEELOGY
CG:SKEELOGY
CATEGORIES
   VFX / CG
       + effects & simulations (7)
       + models (6)
       + rigs (7)
   PHOTOGRAPHY
       + film/lens effects (3)
       + HDR (2)
       + lomo (1)
       + macro (2)
       + panorama (3)
       + pinhole (1)
       + stereo (3)
   PROGRAMMING
       + artificial intelligence (2)
       + computer graphics (3)
       + computer vision (4)
       + game technologies (2)
       + rigging & deformation (4)
       + simulations (8)
   PROJECTS
       + games (4)
       + VFX & animations (4)
   REELS
       + demo reels (4)
   TUTORIALS
       + physics simulation (1)
   ME
       + events (7)
       + honours & awards (8)
       + movie credits (6)
       + 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
  + Showreel 2011   + Shape Matching in Houdini   + Melt SOP using VOP/VEX   + FX Reel 2011   + Burning Poster
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
Houdini FX TD
Double Negative
I am a Technical Director with strong interests in both the tech and artistic side of things. My life evolves round visual effects, photography, software engineering, tools programming and generally anything that looks and sounds cool.
I have done a variety of CG programming previously, including fluid simulations, muscle systems, soft/rigid bodies, raytracing etc. These theoretical and programming knowledge complement the visual works that I do as a TD in the VFX industry.
MY OTHER SITES
SUBSCRIBE TO SITE
SHARE THIS SITE
Copyright © 2003-2012.
All works are original ones by Skeel, unless otherwise stated.