Disclaimer: tif files are very large and not supported by many browsers, so in this website, I've displayed all the tif files as jpgs. The tif files are included in my project.
Demonstration of the purpose of this project. The original glass plates are represented with the grayscale image, and is B,G,R from top to bottom. The images are cropped apart from each other, and stacked, as shown in the middle. Then they are aligned to fit into one color image.
Below are pictures of the .jpg files from this step.
Image of the monastery before and after alignment. Displacement: R(3,2) G(-3,2)
Image of the cathedral before and after alignment. Displacement: R(12,3) G(5,2)
Image of the settlers before and after alignment. Displacement: R(15,-1) G(7,0)
Image of the nativity before and after alignment. Displacement: R(8,0) G(3,1)
Below are pictures of the .tif files from this step. The .jpg files look the same with the same displacement with this new algorithm. All of them aligned pretty well with this algorithm except for emir.tiff, which I will show in the next section.
Image of the harvesters before and after alignment. Displacement: R(123,14) G(59,17)
Image of the icon before and after alignment. Displacement: R(89,23) G(40,17)
Image of the lady before and after alignment. Displacement: R(116,12) G(54,9)
Image of the self portrait before and after alignment. Displacement: R(174,37) G(78,29)
Image of the three generations before and after alignment. Displacement: R(111,12) G(52,14)
Image of the train before and after alignment. Displacement: R(87,32) G(43,6)
Image of the turkmen before and after alignment. Displacement: R(116,28) G(56,21)
Image of the village before and after alignment. Displacement: R(137,22) G(65,12)
The color of emir’s robe is blue, so it has a very high value for the B plate, and a 0 value for the R plate. This means that the reason emir probably failed during my algorithm in phase 2 was because I couldn’t line up the red and blue pixels by value. I noticed that the blue and green lined up well from Phase 2, so I decided to switch the alignments. Instead, for this iteration, I lined up the blue plate and red plate with the green plate, and that worked much better.
The results are displayed below:
Image of Emir before alignment (farthest left), aligned with my algorithm in phase two (middle), and aligned with my new algorithm in phase 3 (right).
For the last image that aligned the best, Displacement: R(57,17) G(-49,-24)
The results for a few of the images are displayed as follows. I cropped the images to show the contrast between each photo a little better:
Shows the contrast between emir before and after the automatic contrast algorithm was applied. Becasue of the huge contrast in pixel value between the sky and the grass beforehand, this photo was the most sensitive to my algorithm.
Shows the contrast between emir before and after the automatic contrast algorithm was applied. For this photo, because the photo has less original contrast, the biggest effect my algorithm had on emir was the increase in whiteness of the wall and turban.
Shows the contrast between lady before and after the automatic contrast algorithm was applied.
Shows the contrast between self portrait before and after the automatic contrast algorithm was applied.
Applied the algorithm on both sizes for the tif files, the larger image is above, and the smaller one is below. I didn't find a huge difference in image quality to the naked eye.
Another picture from the library of congress! I'm impressed how well this one lined up. I picked it because I thought that it's original photos had different contrasts for RGB values.
Picked this one because I simply love the building.