Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Load cv triangulate points()

$
0
0
Hi everyone, I am working on cv triangulatepoints(). I have keypoint values and projection matrix and I did tringulation using opencv function. But I could not able to load the points to point3d variable. I am getting error at `double w = out.at(3,0);`. I am trying to take x,y,z axis for one keypoint out of my 383 keypoints. Can anyone please suggest me. int N = inp1.size(); cv::Mat out = cv::Mat(4,N, CV_64FC1); cv::triangulatePoints( P, P1, inp1, inp2, out); "out = " << out << endl; w = out.at(3,0); x = out.at(0,0)/w; y = out.at(1,0)/w; z = out.at(2,0)/w; push_back(cv::Point3f(x,y,z));

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>