Registration of rotated and translated images using finite Fourier transforms