Extract Image - And Warp into Rect


I’m trying to extract a piece of an image (given from the camera), and re-warp it so its rectangular.

I’m working with AR - Vuforia, and I want to be able to do something like this:


So initially, the user points their device’s camera at a target image. Vuforia notices that it is a specific image, and calucates where the corners of the image is (I have invisible GameObjects on each corner of the image within my scene).

Because I have the position of each corner, I now need to warp the image into a Rect. How do I go about by doing this? (I own Unity Pro as well).


This question over StackOverflow discusses the same issue and is solved:

extracting a quadrilateral image to a rectangle