| 81 | } |
| 82 | |
| 83 | bool Pinhole::ReconstructWithTwoViews(const std::vector<cv::KeyPoint>& vKeys1, const std::vector<cv::KeyPoint>& vKeys2, const std::vector<int> &vMatches12, |
| 84 | Sophus::SE3f &T21, std::vector<cv::Point3f> &vP3D, std::vector<bool> &vbTriangulated){ |
| 85 | if(!tvr){ |
| 86 | Eigen::Matrix3f K = this->toK_(); |
| 87 | tvr = new TwoViewReconstruction(K); |
| 88 | } |
| 89 | |
| 90 | return tvr->Reconstruct(vKeys1,vKeys2,vMatches12,T21,vP3D,vbTriangulated); |
| 91 | } |
| 92 | |
| 93 | |
| 94 | cv::Mat Pinhole::toK() { |
no test coverage detected