I have an input image. This image may be rotated or not. But I want to make the image as a non rotated image if there is a rotation.
For this I am planning to use a sample template which is not rotated. My intention is to find the best matching between the input image and this template. And find the angle of rotation of the input image to obtain this best matching. So that using this angle I can re-rotate the input image to original non rotated image.