CS 180 Portfolio

Monochrome

Project 1: Colorizing Prokudin-Gorskii Photos

Overview

Sergei Mikhailovich Prokudin-Gorskii (1863-1944) recorded three exposures of every scene onto a glass plate using a red, a green, and a blue filter. Our goal is to take the digitzed Prokudin-Gorksii glass plate images and produce a color image.

Approach

After separating the three different images, the first thing I did to measure the similarity between two different pictures was to just take the Euclidean distance between the two. For the green and red images, I would shift the x and y coordinates by [-20, 20], and recalculate the Euclidean distances. This worked okay, not super great, so I decided to try and crop the sides by 5%. This would help alleviate the issues with the potential black edges messing up the Euclidean distance, or the next metric I tried, NCC. Instead of actually improving it, cropping made it worse. So, I decided to try a new metric -- using Sobel edge detection. This automatically improved the alignments quite a bit, so this is the method I went with. Then, the next step was to process the .tif files. I had tried these when running the Euclidean distances, but the file size was too large and took too long. So instead, I decided to recursively minimize the quality of the image, search for the alignment there, and then scale it back up. I settled for a pixel size of 400, as I found that it worked the best. Then, as I scale the image back up by 2x each time, I only need to search a radius of [-2, 2] in both the x and y direction after scaling back up, since we found the best alignment from the scaled down version of the picture. This is the final method I ended up with, as well as cropping the sides by 15%, as I found that worked best as well.

Image Comparisons

Below, you'll see the results of our image processing. Each row shows the original image, the processed image, and the final colorized result.

Image 1 of set 1

Original

Image 2 of set 1

Processed

Image 3 of set 1

Colorized

Image 1 of set 2

Original

Image 2 of set 2

Processed

Image 3 of set 2

Colorized

Image 1 of set 3

Original

Image 2 of set 3

Processed

Image 3 of set 3

Colorized

Image 1 of set 4

Original

Image 2 of set 4

Processed

Image 3 of set 4

Colorized

Image 1 of set 5

Original

Image 2 of set 5

Processed

Image 3 of set 5

Colorized

Image 1 of set 6

Original

Image 2 of set 6

Processed

Image 3 of set 6

Colorized

Image 1 of set 7

Original

Image 2 of set 7

Processed

Image 3 of set 7

Colorized

Image 1 of set 8

Original

Image 2 of set 8

Processed

Image 3 of set 8

Colorized

Image 1 of set 9

Original

Image 2 of set 9

Processed

Image 3 of set 9

Colorized

Image 1 of set 10

Original

Image 2 of set 10

Processed

Image 3 of set 10

Colorized

Image 1 of set 11

Original

Image 2 of set 11

Processed

Image 3 of set 11

Colorized

Image 1 of set 12

Original

Image 2 of set 12

Processed

Image 3 of set 12

Colorized

Image 1 of set 13

Original

Image 2 of set 13

Processed

Image 3 of set 13

Colorized

Image 1 of set 14

Original

Image 2 of set 14

Processed

Image 3 of set 14

Colorized

Image 1 of set 15

Original

Image 2 of set 15

Processed

Image 3 of set 15

Colorized

Image 1 of set 16

Original

Image 2 of set 16

Processed

Image 3 of set 16

Colorized