I need to find out rotation angle and translation value using given images (Original and Transformed).
Original Image
Transformed Image
The Centroids for Original Image
The Centroids for Transformed Image
After finding the centroids I have tried to determine rotation angle using the centroid points' coordinates. For example in the first image chimney's coordinates are (256,84)
in the original image and (284,81)
in the transformed image.
I have made a calculation like
angle = atan(abs(284-256)/abs(81-84))/pi*180;
But I have found different angles for different points.
I want to know how to determine rotation angle and translation value of the transformed image.