Find image rotation angle using DFT

asked 2020-06-17 07:21:40 -0500

kayman gravatar image

Hi, I was using this tutorial :

My aim is to use the dft result to rotate my original images so they are better aligned horizontally.

While getting the dft was a piece of cake I'm stuck however on the last part 'From this we may calculate the offset and perform an image rotation to correct eventual miss alignments.'

Can someone point me to some articles describing how you do calculate the offset? Preferably in python as the rest of my code is also in python.

edit retag flag offensive close merge delete