CS194-26 Project 1

Requirements:

The folder should contain an index.html web page file that should include the following:

Overview and method

In this project, black and white images taken using three color filters are aligned to produce a mostly in focus color photograph. Photos are taken from the Prokudin-Gorskii Collection.

To align these photos, a normalized cross correlation is taken across the image to find the highest correlation shift. For larger images, this is broken down into a pyramid scheme where lower resolution versions of images are shifted first, and then within a range of the scaled up shift higher degrees of detail to the shift are realized.

Results on JPG Images

Since the JPG images are so small, a simple normalized cross correlation on each image in the center, with some cropping, is

JPG 1: cathedral

Shift Found:

cathedral before

cathedral after

JPG 2: monastery

Shift Found:

monastery before

monastery after

JPG 3: tobolsk

Shift Found:

tobolsk before

tobolsk after

Results on TIFF Images

tif1: castle

Shift Found:

castle before

castle after

tif2: emir

Shift Found:

Just by looking at these shifts we can tell that our algorithm strugled to align Emir. This is because we have large structures in the edges of the image that dragg the correlation to those highest shifts. That corruption makes our correction worse than the original image.

emir before

emir after

tif3: harvesters

Shift Found:

harvesters before

harvesters after

tif4: icon

Shift Found:

icon before

icon after

tif5: melons

Shift Found:

melons before

melons after

tif6: onion_church

Shift Found:

onion_church before

onion_church after

tif7: self_portrait

Shift Found:

self_portrait before

self_portrait after

tif8: three_generations

Shift Found:

three_generations before

three_generations after

tif9: train

Shift Found:

train before

train after

tif10: workshop

Shift Found:

workshop before

workshop after

tif11: lady

Shift Found:

lady before

lady after

Results on Personal Choice TIFF

I also chose this group photo in the collection to try with, as the human subjects are the most interesting and the most likely to move. If I had time, I would have adjusted the color balance, since red seems to be the strongest.

Shift Found:

group before

group after

Bells and Whistles

I have none to show. I really enjoyed this project, but had a very difficult week.