Project 1: Image Alignment with Pyramids

Vibhu Ramani
September 17th, 2012


Steps:

Extra Credit

Auto cropping Consider each layer of the RGB format, I discreatized pixels that were only greater and less than a certain threshold (10,240) to 1 and the rest to zero. To this image I took horizontal and vertical sums, For the sum in each direction looking at the histogram I felt that it was necessary for a line to be inside the image if atleast 1/3 of the pixels had positive values. The first line to have such could be considered as the boundary. But this led to some errors as there were cases if a border had a line above the threshold it would spoil the boundary conditions. To fix this I ran a sliding window sum and picked the first point where atleast 50% of the points were above the threshold. This improved the border detection a lot.
Ref http://users.iit.demokritos.gr/~bgat/CBDAR_BORDERS.pdf
Ref Sliding Average function

Using Edges For the images that had good solid straight lines and edges edge detection helped a lot and improved the time to compute the ssd. The images that consisted of a lot of texture surfaces had issues with allignment using edges.


Image format

Original RGB ImageImage aligned using RGB value and cropped
Original RGB Image With edgesImage aligned using Edges and cropped

Positive Results Using RGB Values


Positive Results Using to Edge Detector.


Negative Results


Unique cases

The blue layer had not much information, hence trying to align the green wrt to blue and red wrt blue fails.
But if we changed this order the image gets aligned properly.