How to get angle of rotation of object

From what I can tell, it’s used to detect a base image in an image that has been modified. How would that get me the angle?