answered Jul 25 '13
Use cv::perspectiveTransform().
cv::perspectiveTransform()
updated Jul 25 '13
You might need to convert your array of points into a matrix.