The function is run with: [result] = colorize('Outside-21620u.tif'); It saves in the same format with 'result-' prepended.
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.
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.
To remove the unwanted noisy edges from the calculation, a crop of 100 pixels is performed.
R delta [9 2] G delta [4 2]
R delta [9 2] G delta [4 2]
R delta [-4 1] G delta [-3 1]
R delta [8 4] G delta [4 2]
R delta [11 4] G delta [5 3]
R delta [7 -4] G delta [2 -2]
R delta [12 -2] G delta [5 0]
R delta [12 -1] G delta [2 0]
R delta [84 28] G delta [40 0]
The full-size : here.
R delta [8 16] G delta [-16 12]
The full-size : here.
R delta [72 32] G delta [24 20]
The full-size : here.
R delta [120 12] G delta [56 8]
The full-size : here.
In addition 3 outside images were chosen from the database:
R delta [92 40] G delta [40 28]
The full-size : here.
R delta [132 8] G delta [56 0]
The full-size : here.
R delta [132 -12] G delta [64 0]
The full-size : here.
In addition 1 image was created by mixing:
to make the triple image:
The full-size : here.
R delta [15 14] G delta [-9 -2]
The full-size : here.
The exposure was a bit undercooked so a tweeking
of levels gives:
The full-size : here.
Finally we have the reference: