findHomography()
Mat cv::findHomography ( InputArray srcPoints,
InputArray dstPoints,
int method = 0,
double ransacReprojThreshold = 3,
OutputArray mask = noArray(),
const int maxIters = 2000,
const double confidence = 0.995
)
当srcPoints和dstPoints的值太小的时候,比如只有三个点的时候,使用ransac算法当然会出错了。