Overview

This project was about aligning the red, green, and blue portions of images from the past. To do this, I shifted the image from each color channel to the spot where the L2 norm between the shifted channel and comparison channel was the smallest. In order to speed up runtime and be able to produce larger shifts, I used an image pyramid to downsize the image and speed up L2 norm comparison for larger pixel shifts. I then incorporated the shift and calculated more fine grained changes from there.

Images

cathedral.jpg

Image missing
Green Shift: [2, 5], Red Shift: [3, 12]

church.tif

Image missing
Green Shift: [4, 25], Red Shift: [-4, 58]

emir.tif

Image missing
Photo was shifted based on red unlike other images. Green Shift: [-17, -57], Blue Shift: [-55, -103]

harvesters.tif

Image missing
Green Shift: [17, 60], Red Shift: [14, 124]

icon.tif

Image missing
Green Shift: [17, 41], Red Shift: [23, 90]

lady.tif

Image missing
Green Shift: [9, 52], Red Shift: [12, 112]

melons.tif

Image missing
Green Shift: [10, 82], Red Shift: [13, 178]

monastery.jpg

Image missing
Green Shift: [2, -3], Red Shift: [2, 3]

onion_church.tif

Image missing
Green Shift: [26, 52], Red Shift: [36, 108]

self_portrait.tif

Image missing
Green Shift: [29, 79], Red Shift: [37, 176]

three_generation.tif

Image missing
Green Shift: [14, 53], Red Shift: [11, 112]

tobolsk.jpg

Image missing
Green Shift: [3, 3], Red Shift: [3, 6]

train.tif

Image missing
Green Shift: [6, 42], Red Shift: [32, 87]

workshop.tif

Image missing
Green Shift: [0, 52], Red Shift: [-12, 104]

Custom Images

mosque.tif

Image missing
Green Shift: [4, 32], Red Shift: [7, 79]

river.tif

Image missing
Green Shift: [-1, 39], Red Shift: [-6, 151]

milan_cathedral.tif

Image missing
Green Shift: [-19, -10], Red Shift: [-55, -2]