Project 1

Sahba Bostanbakhsh, Spring 2020

The project 1 basically is an alignment of RGB channles of an image to convert a grayscale image to colored image.

Process

The basic function (Naive) version was just to try to aligne the images using an exhaustive irritative search and use SSD squared of sum difference of the two channles to score each sereach and shift the channles based on the score we got.

To improve the result of the alignment, and to make this process more time efficent I used image pyramids method to improve performance. However there were some imperfection even with the pyramids method for most of the bigger picters.

Images

Cathedral. Displacements: Green[5 3] Red[12 5]
Emir. Displacements: Green[33 12] Red[9 -6]

Lady. Displacements: Green[24 16] Red[33 14]


Icon. Displacements: Green[27 9] Red[56 12]
Monastery. Displacements: Green[0 2] Red[4 3]
Melons. Displacements: Green[4 83] Red[7 176]
Onion_church. Displacements: Green[-2 50] Red[-5 130]
Self_portrait. Displacements: Green[0 2] Red[4 3]
Three_generations. Displacements: Green[15 52] Red[0 3]
Tobolsk. Displacements: Green[0 2] Red[4 3]
Train. Displacements: Green[8 41] Red[0 0]
Village. Displacements: Green[0 2] Red[24 59]
Workshop. Displacements: Green[0 53] Red[-12 100]