Project 1 - Images of the Russian Empire

Goal

Align misaligned RGB color channels in scanned images and improve image contrast using various techniques.

Approach

  1. Read an image and splitting it into three equal parts, which represent the blue, green, and red color channels, respectively.
  2. Crop the 5% of the border of color channels.
  3. Use image pyramid to perform multi-level image alignment.
  4. Stack RGB channels to render the image.

Bells and whistles

Results

Cathedral
Red Offset: (12, 3), Green Offset: (5, 2)
Church
Red Offset: (58, -4), Green Offset: (25, 4)
Emir
Red Offset: (107, 40), Green Offset: (49, 23)
Harvesters
Red Offset: (118, 11), Green Offset: (60, 18)
Icon
Red Offset: (90, 22), Green Offset: (38, 16)
Lady
Red Offset: (120, 13), Green Offset: (57, 9)
Monastery
Red Offset: (3, 2), Green Offset: (-3, 2)
Melons
Red Offset: (177, 14), Green Offset: (79, 9)
Onion Church
Red Offset: (107, 34), Green Offset: (52, 30)
Sculpture
Red Offset: (140, -27), Green Offset: (33, -11)
Self Portrait
Red Offset: (175, 37), Green Offset: (77, 29)
Three Generations
Red Offset: (115, 12), Green Offset: (57, 17)
Tobolsk
Red Offset: (6, 3), Green Offset: (3, 3)
Train
Red Offset: (84, 34), Green Offset: (40, 8)