2
$\begingroup$

I have a given rectangle that I need to transform into a given quadrilateral shape that resulted from a rotation and translation in 3D space, and subsequent projection.

*---------*        *---------* |         |  -->   \         / |         |         \        /  *---------*          *------* 

I only have the coordinates of the projected rectangle (i.e. the four coordinates of the quadrilateral's corners). I need to get back to the 3D rotation and translation that resulted in that projected shape.

Is there a simple mathematical formula that would enable me to compute the values of the rotation vector, rotation angle and translation vector?

Thanks.

  • 0
    Well, if it's true mathematical projection, it will always end up being a parallelogram, and how far up the z-axis you translate it will not be visible. Also, it's neccesary to know something about the rectangle you started with, like it's the smallest possible, given the result, or something like that.2012-03-02
  • 0
    It's a perspective projection, so it's not a parallelogram. About the rectangle, we can make it any size or shape we want (as long as it's a rectangle).2012-03-02
  • 0
    See http://dl.dropbox.com/u/7558464/Projection%20example.png for an example. We need to map a picture into the blue-green shape.2012-03-02
  • 0
    Have you looked into plane-to-plane "homographies" (http://en.wikipedia.org/wiki/Homography)?2012-08-17
  • 0
    Your answer might lie in the functions of this http://tulrich.com/geekstuff/canvas/perspective.html2012-05-17

1 Answers 1