# Revision history [back]

You can use findHomography() for this. It returns a transformation matrix H, which you can use as parameter for warpPerspective() to map the source image onto the destination image.