求教大神 透视变换函数getPerspectiveTransform的调用问题
冷若寒阳s 2016-08-02 10:10:05 vector<Point2f> origin_corner;
origin_corner.push_back(Point2f(xMin, yMin));
origin_corner.push_back(Point2f(xMin, yMax));
origin_corner.push_back(Point2f(xMax, yMin));
origin_corner.push_back(Point2f(xMax, yMax));
vector<Point2f> after_corner;
after_corner.push_back(Point2f(0, 0));
after_corner.push_back(Point2f(0, yMax - yMin));
after_corner.push_back(Point2f(xMax - xMin, 0));
after_corner.push_back(Point2f(xMax - xMin, yMax - yMin));
Mat transMatrix = getPerspectiveTransform(origin_corner, after_corner);
总是显示输入参数不对 和其他人一样的程序 Assertion failed :src.checkVector<2, CV_32F> == 4 && dst.checkVector<2, CV_32F> == 4