Project 1: Aligning Images

Overview

This project focuses on image alignment techniques. Given the 3 grayscale images, each representative of the intensity of a certain color in the scene and each taken from about the same position and perspective, find a good alignment of these 3 images. A good alignment results in a color image representative of the colors of the original scene when each of the 3 images is displayed as the red, green, and blue channels of a single picture.

Approach

The basic approach was to align pairs of channels. One channel was used as the reference channel (other channels were shifted relative to it). To align a target channel with a reference channel, each possible shifting within a specific vertical/horizontal range is exhaustively search. For each possible shifting, the shifted target image is matched against the reference image. The preferred metric for evaluating the quality of an alignment was normalized-cross-correlation: both the reference and target image were flattened into a vector and normalized, and their inner product was taken to be the correlation score. Details

Challenges

Results

Given Examples

Cathedral

Channels
Unaligned
Aligned

Emir

Channels
Unaligned
Aligned

Harvesters

Channels
Unaligned
Aligned

Icon

Channels
Unaligned
Aligned

Lady

Channels
Unaligned
Aligned

Monastery

Channels
Unaligned
Aligned

Nativity

Channels
Unaligned
Aligned

Self Portrait

Channels
Unaligned
Aligned

Settlers

Channels
Unaligned
Aligned

Three Generations

Channels
Unaligned
Aligned

Train

Channels
Unaligned
Aligned

Turkmen

Channels
Unaligned
Aligned

Village

Channels
Unaligned
Aligned

Other Examples

Bridge

Channels
Unaligned
Aligned

Naziya

Channels
Unaligned
Aligned

Trees

Channels
Unaligned
Aligned