Sergei Mikhailovich Prokudin-Gorskii did color photography when color photography wasn't even possible. He captured daily civilian life into a glass plate using red (r), green (g), blue(b).
Therefore, the aim of this project is to bring life to color photos from Prodkudin-Gorskii's RGB photos using displacement heuristic techniques and other image processing techniques.
The initial implementation was really snow for the large .tif files, so I implemented an image pyramid for the large .tif files. Essentially, I recursively used my displacement methdo on rescaled versions of the original image, cutting the resolution in by log 2 each time.
I noticed similar results between SSD and NCC and I used SSD. SSD is essentially: $Σ Σ (r - b)^2$ or $Σ Σ (g - b)^2$
When the recursion base case hit, I stop rescaling. Then I upscale, then I only stop when the whole image has been finished.
My initial approach proved to work really well for low resolution photos but terribly slow for high resolution photos. It used a displacement heuristic based on ssd.
#without croppping
low_res_implementation('cathedral.jpg');
low_res_implementation('monastery.jpg');
Exhaustive search is super slow for large images. Therefore, we implement a faster search function called 'pyramid', as seen below.
## sorry ignore above error.. here are the rest:)
After Cropping
low_res_implementation('cathedral.jpg');
Before Cropping
low_res_implementation('cathedral.jpg');
After contrast:
low_res_implementation('cathedral.jpg');
Before contrast
low_res_implementation('cathedral.jpg');