Quad warping point to point

I’m looking for a Quad warping methods to get all normalized points from a deformable quad into another one. Any ideas how to get this relation ? There are some quad warping addons able to deform images, but what I need is the one to one point relation from quad1 to quad2.

Simple visual example, from one inside point into his correspondent point located in another quad.


i posted this a while ago here : Quad warping / homography without opencv but the link is not working anymore. most addons use that code though, like:

just include that file in your project and call it like:

auto mat = findHomography(quad1, quad2);

then multiply the source point by the returned matrix and you get the destination point.

Thanks looks pretty good. Working to add this on a simple ofxQuadHomography class.