Hi,
You can use radon transform to detect the rotation angle. I think you have to detect the minimum column or row of the radon transform, and based on what row number is this and how you configured radon you know how much it should be rotated.
To rotate the image you can use imrotate function. Have a look at MATLAB help for radon and imrotate.
Let us know if you have prob
Good Luck!
Best Answer