In order to quickly test multiple alignments, my project creates an image pyramid for the three different images being aligned, and matches them at smaller dimensions because matching them at higher ones. The image pyramid is created by blurring, sampling every other pixel, and repeating for a given number of levels. This allows my project to a few possibilities at each dimension to narrow options down, rather than checking all possibilities right away.
The image pyramid had little effect on small images, but a rather large effect on the tif’s which were very large.
I compared sum of squared differences, and also normalized cross
correlation, but they were pretty much the same results-wise.
See last set of images for the final
output of my project.
Extra credit:
Original images: |
|
|
|
|
With edge detection: |
|
|
|
|
Uncropped images: |
|
|
|
|
|
Cropped images: |
|
|
|
|
|