Computational Photography Project 1 - afarley

Alignment Function

The function is run with: [result] = colorize('Outside-21620u.tif'); It saves in the same format with 'result-' prepended.

Alignment

Alignment is performed by first running an 'sobel' edge filter on the image to generate an edge veiw. Then performing an SSD iteratively to find the closest match.

Image Pyramid

It is optimized through an image pyramid which reduces the image by up to 32 times smaller. To prevent hitting a memory limit, the ending limit is only one half the size of the full image on large images. In addition to reducing memory this speeds up the process with satisfactory results. The limited resolution of the original film stock makes this workable.

Cropping

To remove the unwanted noisy edges from the calculation, a crop of 100 pixels is performed.

Results

00149v.jpg

R delta [9 2] G delta [4 2]

00153v.jpg

R delta [9 2] G delta [4 2]

00163v.jpg

R delta [-4 1] G delta [-3 1]

00194v.jpg

R delta [8 4] G delta [4 2]

00398v.jpg

R delta [11 4] G delta [5 3]

00952v.jpg

R delta [7 -4] G delta [2 -2]

01167v.jpg

R delta [12 -2] G delta [5 0]

01656v.jpg

R delta [12 -1] G delta [2 0]

00458u.tif

R delta [84 28] G delta [40 0]

The full-size : here.

01043u.tif

R delta [8 16] G delta [-16 12]

The full-size : here.

01047u.tif

R delta [72 32] G delta [24 20]

The full-size : here.

01657u.tif

R delta [120 12] G delta [56 8]

The full-size : here.

In addition 3 outside images were chosen from the database:

00636u.tif

R delta [92 40] G delta [40 28]

The full-size : here.

01485u.tif

R delta [132 8] G delta [56 0]

The full-size : here.

01769u.tif

R delta [132 -12] G delta [64 0]

The full-size : here.

In addition 1 image was created by mixing:

red

blue

green

to make the triple image:

The full-size : here.

dwarves.tif

R delta [15 14] G delta [-9 -2]

The full-size : here.

dwarves.tif exposure corrected

The exposure was a bit undercooked so a tweeking of levels gives:

The full-size : here.

Finally we have the reference: