Extract Image - And Warp into Rect

Hello,

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:

40401-screen-shot-2015-02-08-at-153610.png

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).

Thanks,
Ollie

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

extracting a quadrilateral image to a rectangle