How to get angle of rotation of object

My mistake, as you didnt provide any samole images I misunderstood your question. FM is not the solution then.