First, I cropped the image into three: r, g, b pictures. Next, I used SSD to determine the x and y offsets that reduced the SSD which measures difference between pixel values. If the image was large, I used an image pyramid, scaling by 2, to more efficiently find the optimal offsets
I encountered problems with general bugs in my loops and logic, in particular for the image pyramid implementation. I fixed these bugs with help from another pair of eyes, and from simply looking at it over and over, and trying different logic combinations. Also, I was having trouble aligning certain images because I did not realize there were some that simply would never look perfect.
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Offsets:
Failure to align? why?
I had failure to align on multiple photos. The only explanation can be human error.Note: if I had employed a more sophisticated such as edge detection, I would have been able to align these photos much better. However, I have worked for more than 7 hours on this 5 hour project, so I am done.