Projective transformation by dragging handles

239 views Asked by At

We would like to implement this kind of transformation: Screenshot-73.png

Screenshot-73

This image is taken from Gimp, using the Unified Transform Tool. You simply drag the corners and the rectangle is transformed freely. I believe this is called a projective transformation.

Does anyone have the formulas to create the transformation matrix for such a projective transformation given the locations of the corners?

1

There are 1 answers

0
Can On BEST ANSWER

We have used the following library to obtain the transformation matrix from the source and destination corner points:

https://github.com/jlouthan/perspective-transform