# Getting back to the original coordinates from a warped Image

I have four corners extracted from a image,

std::vector<cv::Point2f> ecken;
ecken.push_back(corners[0]);
ecken.push_back(corners[size.height-1]);
ecken.push_back(corners[size.area()-size.height-1]);
ecken.push_back(corners[size.area()-1]);


they are warped in to a second image:

quad_pts.push_back(cv::Point2f(0, 0));

// Get transformation matrix


cv::Mat trans  = cv::getPerspectiveTransform(quad_pts,ecken );