How to get angle of rotation of object

Maybe you want to use the Fourier-Mellin? some example code here: