Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've done something similar a while ago. The gist of the solution is to project 4 imaginary lines from the corners of the camera. They will hit the ground and form a trapezoid shape when looked from above. You then take your 2D image and apply a homography that transforms the rectangle image to the trapezoid shape (with some appropriate scaling).