Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Using Phase Correlation I was able to find the correct x/y offset. I used the Phase Correlation tutorial found here: http://web.archive.org/web/20121014113446/http://nashruddin.com/phase-correlation-function-in-opencv.html

The only hiccup I have come across is when the images are aligned top-right / bottom-left. The phase correlation only returns the correct x coordinate OR y coordinate at a time, so I have to calculate twice. (Once for X, once for Y.) And the Y coordinate generated for this positioning is consistently 1 pixel off. (Not desirable, but manageable.)

The other arrangements all work out fine (directly above / below, side-by-side, and top-left / bottom-right).