Minjae Lee (minjaele) 15-463 Computational Photography Project 1

Instructions

Run ssd.m for small images
Run pyramid.m for large images (works almost identically for small image)

Implementation Details

Used Sum of Squared Distance algorithm
I considered images from 60 to max-60 for both width/height to avoid calculating unnecessary parts of image
In recursive algorithm, depth is 5, window is [-2~4, 2~4]

Bells & Whistles

Cropping edge to remove border
Grad version in the end of page!!

Results (Small)

(G = [3, 3], R = [4, 5])
(G = [4, 1], R = [9, -1])
(G = [6, 6], R = [11, 8])
(G = [2, 3], R = [5, 5])
(G = [6, 1], R = [12, 0])
(G = [1, 2], R = [4, 3])
(G = [3, 1], R = [8, 48])
(G = [1, -1], R = [13, -1])
(G = [1, 1], R = [4, 2])
(G = [6, 2], R = [14, 4])
Image of my own choosing: (G = [5, 2], R = [10, 1])
Image of my own choosing: (G = [4, 1], R = [13, 1])

Results (Large)

(G = [38, 22], R = [91, 42])
(G = [49, 47], R = [108, 56])
(G = [35, 25], R = [52, 38])
(G = [15, 6], R = [49, 14])
(G = [56, 25], R = [124, 34])
(G = [16, 3], R = [42, 4])
(G = [48, 13], R = [113, 20])
(G = [-15, 10], R = [11, 19])
(G = [42, 32], R = [111, 60])
(G = [47, 29], R = [100, 50])

Grad version!

Instructions

Run hybrid.m to get everything!
It will spit out input images' 2ft version,
filtered input images' 2ft version,
hybrid image, and filtered version of it

Implementation Details

Totally created by myself from the bottom to the top (I could not work on GUI matlab)
Apply gausian filter to first one, and subtract it from original one for the second one
And then average them by some given magical weights

Concept

3 of Crew members from old and new Star Trek!
Jame T. Kirk played by William Shatner/Chris Pine + Hybrid

Here are ffts (William, Chris, filtered William, filtered Chris, Hybrid).. They are 1 pixel only.. I do not know why
Nyota Uhura played by Nichelle Nichols/Zoe Saldana + Hybrid
Spock played by Leonard Nimoy/Zachzry Quinto + Hybrid

I think if the two images match too well, the hybrid looks like losing information.
I think it is because of my cutoffs since it is a magic and not math, so for some images,
it will lose information too much to look nice.