Question

I have two 2d quads (each represented using 4 xy pairs), one of them is a perspective transformation of the other. How can I use these quads to deduce the rotations (pitch, yaw, roll) that caused the perspective distortion?

Notice that I used the cvGetPerspectiveTransform() which returns the perspective transformation coefficients in the form of a 3x3 matrix. I am able to use such coefficients to map a point from one space to another. However, it is the rotation angles which I'm concerned about knowing.

Any ideas?

Thanks, Hasan.

No correct solution

OTHER TIPS

My algorithm was
1) calculate 3d coordinate of to quads (example show in Calculating rectangle 3D coordinate with coordinate its shadow?)
2) take to point of first and corresponded two points of second calculate quaternion(see first reference I post in it reference to answer)
3) from quaternion calculate rotation matrix, angle.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top