|
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:
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:
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.
|
Copyright © 2003-2024 Skeel Lee. All works are original ones by Skeel, unless otherwise stated.
|
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!
Hey, thanks for the great comment!
I don’t have the codes with me anymore though, sorry about that.