select3dobj.cpp | 115 static Point3f image2plane(Point2f imgpt, const Mat& R, const Mat& tvec, 120 Mat_<double> v = (cameraMatrix*R1).inv()*(Mat_<double>(3,1) << imgpt.x, imgpt.y, 1); 134 vector<Point2f> imgpt; local 148 projectPoints(Mat(objpt), rvec, tvec, cameraMatrix, Mat(), imgpt); local 153 circle(shownFrame, imgpt[0], 3, Scalar(0,255,0), -1, LINE_AA); 156 circle(shownFrame, imgpt[0], 3, Scalar(0,255,0), -1, LINE_AA); 157 circle(shownFrame, imgpt[1], 3, Scalar(0,255,0), -1, LINE_AA); 158 line(shownFrame, imgpt[0], imgpt[1], Scalar(0,255,0), 3, LINE_AA) [all...] |