Project 1: Colorizing Some Russian Guy's Photo Collection by Michael Chuang



Single Scale Alignment

Most of the work was figuring out how to align the images since the sample code showed how to separate the 3 gray images.
I tried to use the Sum of Differences with bounds of (-15,15). The aligning made most of the new images look a lot less blurry.

A. Assigned Images

Not Aligned Aligned Displacement

00125v.jpg

X: -1, Y:6
X: 1, Y:10

00149v.jpg



X: 2, Y:4
X: 1, Y:9

00153v.jpg



X: 2, Y:7
X: 4, Y:14

00154v.jpg



X: 0, Y:5
X: 0, Y:11

00163v.jpg



X: 1, Y:-3
X: 1, Y:-5

00270v.jpg



X: 0, Y:3
X: 1, Y:11

00398v.jpg



X: 2, Y:5
X: 4, Y:11

00564v.jpg



X: 0, Y:5
X: 0, Y:11

01167v.jpg



X: -1, Y:1
X: -2, Y:11

31421v.jpg



X: 0, Y:8
X: 0, Y:13

B. Chosen Images:

Not Aligned Aligned Displacement

00017v.jpg

X: -1, Y:1
X: -2, Y:1

00056v.jpg



X: 1, Y:6
X: 0, Y:12

00084v.jpg



X: -4, Y:4
X: -9, Y:11



Multi-Scale Alignment

This part of the assignment takes so much time (Lucky I had several computers where I could run these searches in parallel). For the image pyramind, I did 5 levels (1, 0.5, 0.25, 0.125). I re-used the Sum of Differences code I implemented earlier and it takes 18 minutes to search on each of the big images. I made the mistake of thinking I could align the images without cropping edges. Wasted a whole night because each run takes about 20 minutes and I found out eventually that the edges were affecting the alignment drastically on the biggest image. I finally decided to crop edges and it aligned better. Some of them no matter what i did...it would not align perfectly. I just tried to get it as close as possible.

A. Assigned Images:

Not Aligned Aligned Displacement

00458u.tiff



X: 8, Y:41
X: 32, Y:83

00911u.tiff



X: 8, Y:-8
X: -8, Y:-8

01043u.tiff



X: -3, Y:3
X: 3, Y:3

01047u.tiff



X: -8, Y:-8
X: 8, Y:8

01657u.tiff



X: 8, Y:-8
X: 5, Y:8

01861a.tiff



X: 39, Y:71
X: 62, Y:148

4001.tiff

X: 3, Y:-71
X: -79, Y:61

5001.tiff



X: -5, Y:-42
X: -86, Y:68

B. Chosen Images:

So beautiful when the alignment works. :)

Not Aligned Aligned Displacement

00033u.tiff



X: 9, Y:54
X: 15, Y:104

00153u.tiff

X: 23, Y:68
X: 32, Y:142

Bells and Whistles

A. Auto-cropping

In auto-cropping, I was trying to remove the edges from the aligned images. I actually ended up using this portion's code on the multi-scale part.

Not Cropped Cropped Image File

00153v.jpg

00154v.jpg

B. RGB Isolation

I thought it would be fun to do what someone did last year...and isolate a color channel in an image. I took the respective color channel, filtered based on a threshold, and then overlayed it onto a grayscale version of it. This was a lot more fun to me than doing the rgb color aligning.


Original Red Isolation


Original Red Isolation