Computer Vision - Homework #2

by Benjamin Berger

ID: 4513


Part 1.1 - Gaussian and Laplacian Pyramids

1.1.1 - Gaussian pyramid

1.1.2 - Laplacian pyramid

1.1.3 - Synthesize Image from a Laplacian pyramid


Comments to matlab functions:

The algorithm in the paper (Burt/Adelson) only works for images with dimensions of N^2+1 pixel. But because most of the pictures provided are N^2 pixel wide, they had to be made bigger. This was done by adding an one pixel wide border with the algorithm for padding described in the paper. For more detailed information see the comments in the matlab files. The following image files are returned by the script file do_zebra.m:


Gaussian and Laplacian pyramid for zebragray image (level 1-8)



Gaussian and Laplacian pyramid for zebra color image (level 1-8)


Comments to result images:

The brightness of the Laplacian pyramid images shown is increased for better visibility. Negative values in the Laplacian pictures would not be shown, so there is 50% gray added (i.e. 0.5 in double images) to each pixel of each level except the last, because this is identical to the last level of the Gaussian pyramid.



Part 1.2 - Blending of two images using Multiresolution Spline

1.2.1 - Horizontal blending in middle line


Comments to "better" blending:

Below the results for the function horizontalblend are show. The second picture is achieved by blending (averaging) each level of the Laplacian pyramid using one transistion line, whereas the third picture uses three transistion lines (with 1/4 and 3/4 weight) according to the method described in the paper (p.226 bottom, "apple and orange method"). This leads to a slightly smoother transition between the two images.

Horizontalblend: Hard combined vs. blended and better blended face images


1.2.2 - Mask blending


Maskblend: Hard combined vs. blended face images




Part 1.3 - Creating non-blended and blended Mosaics

1.3.1 - Non-blended and blended mosaics from memorialhall

Comments to blending:


Horizontalstitch vs. blended_horizontalstitch on memorial images:


Horizontalstitch vs. blended_horizontalstitch on Memorial hall images with different brightness:
This two pictures are a good example for the ability of the Multiresolution Spline to blend images with great photometric differences together.


1.3.2 - Non-blended and blended mosaics from Kent- and New Castle Hall


Horizontalstitch vs. blended_horizontalstitch on two images of Kent- and New Castle Hall:




Part 2 - Estimating translational offset using normalized correlation


Horizontalstitch vs. blended_horizontalstitch on Kent- and New Castle Hall images:

used subimages (templates) for normalized correlation (interactively picked):
1 to 2 2 to 3 3 to 4


Horizontal- and vertical stitch of images using displacement vectores
Horizontal- and vertical stitch on Kent- and New Castle Hall images:


Horizontal and vertical stitch of Memorial hall images:


Bonus picture demonstrating full color ability of maskblend.m function:


Christopher van Borg - Resistance is futile!

Now I am totally done, exhausted and tired. Too good that the next homework is already waiting...
created 03/17/03 by Benjamin Berger