1 | initial version |
Just call
cv::Mat transform = cv::findHomography(firstPtVector, secndPtVector, CV_RANSAC);
The last parameter is optional, and it defaults to RANSAC. In C++, the point clouds must be either std::vector<cv::Point>
either cv::Mat
with one point per line.