This discussion is archived
0 Replies Latest reply: Jul 19, 2012 5:02 AM by 950534 RSS

Compute transform matrix for perspective transform

950534 Newbie
Currently Being Moderated
Hello,

I have the following problem:
I have the coordinates of a quadrilateral in an image. Furthermore I have the coordinates of the same quadrilateral but from another perspective. Now I'm seeking a way to compute a transform matrix that transforms the second perspective to the first one, so that both quadrilateral have the same coordinates again.

Unfortunately I'm not very experienced in Image manipulation and I just discovered the JAI API today. I figured out that there is the class PerspectiveTransform to do transforms with a given transform Matrix, but i wasn't able to find out how I can compute this matrix. Is there maybe an easy way to solve my problem with the help of JAI?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points