Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch7 p178页关于三角化的矩阵T2的问题 #288

Open
Rosa712 opened this issue Sep 27, 2023 · 0 comments
Open

ch7 p178页关于三角化的矩阵T2的问题 #288

Rosa712 opened this issue Sep 27, 2023 · 0 comments

Comments

@Rosa712
Copy link

Rosa712 commented Sep 27, 2023

void triangulation( const vector<KeyPoint> &keypoint_1, const vector<KeyPoint> &keypoint_2, const std::vector<DMatch> &matches, const Mat &R, const Mat &t, vector<Point3d> &points) { Mat T1 = (Mat_<float>(3, 4) << 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0); Mat T2 = (Mat_<float>(3, 4) << R.at<double>(0, 0), R.at<double>(0, 1), R.at<double>(0, 2), t.at<double>(0, 0), R.at<double>(1, 0), R.at<double>(1, 1), R.at<double>(1, 2), t.at<double>(1, 0), R.at<double>(2, 0), R.at<double>(2, 1), R.at<double>(2, 2), t.at<double>(2, 0) );
请问这里的T2是第二幅图片的相机位姿吗?如果是的话为什么用求解出来的R21,t21赋值,当1是世界坐标系时不应该是T2=T21.inverse()吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant