CS194-26

Kevin Zhang

Overview

The goal is to combine exposures of a scene taken using red, green, and blue filters and combine them into a color image.

Approach

There were two main approaches I used: a brute force matching approach and an image pyramid approach. In the brute force matching approach, I iterated through a set of possible translations ([-15, 15] X [-15, 15]) and tried to find the translation that minimized the L2 norm squared between the base image and the resulting image from the translation applied to the image to be aligned. In the image pyramid approach, I would start with the brute force approach at a low resolution, say 16X downsampled, and then take that translation and search for translations near that translation which further reduced the L2 norm squared in successive, less downsampled images.

Problems

The first problem I ran into was with the borders. The borders messed with the calculation of the L2 norm squared when they were aligned over non border parts of the image. To deal with this, I cropped 10% from the borders for each image before aligning. Another issue I found was the Emir pic would not align properly if the blue image was used as the base image. To deal with this I switched to using the green image as the base image.

Results:

Cathedral: G displacement: (2, 5) R displacement: (3, 12)

Emir: B displacement: (-24, -49) R displacement: (17, 57)

Harvesters: G displacement: (17, 60) R displacement: (13, 124)

Icon: G displacement: (17, 41) R displacement: (23, 90)

Lady: G displacement: (9, 56) R displacement: (12, 117)

Melons: G displacement: (11, 82) R displacement: (14, 179)

Monastery: G displacement: (2, -3) R displacement: (2, 3)

Onion Church: G displacement: (27, 51) R displacement: (36, 108)

Self Portrait: G displacement: (29, 79) R displacement: (37, 176)

Three Generations: G displacement: (14, 53) R displacement: (11, 112)

Tobolsk: G displacement: (3, 3) R displacement: (3, 6)

Train: G displacement: (6, 42) R displacement: (32, 87)

Village: G displacement: (12, 65) R displacement: (22, 138)

Workshop: G displacement: (0, 53) R displacement: (-12, 105)

Additional Plates Color Reconstructions

Other 1: G displacement: (24, 63) R displacement: (31, 130)

Other 2: G displacement: (17, 43) R displacement: (15, 93)

Other 3: G displacement: (33, 30) R displacement: (64, 73)