We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Eigen::Matrix4f getWorld2View2Eigen(const Eigen::Matrix3f& R, const Eigen::Vector3f& t, const Eigen::Vector3f& translate /= Eigen::Vector3d::Zero()/, float scale /= 1.0/) { Eigen::Matrix4f Rt = Eigen::Matrix4f::Zero(); Rt.block<3, 3>(0, 0) = R.transpose(); Rt.block<3, 1>(0, 3) = t; Rt(3, 3) = 1.0;
Eigen::Matrix4f C2W = Rt.inverse(); Eigen::Vector3f cam_center = C2W.block<3, 1>(0, 3); cam_center = (cam_center + translate) * scale; C2W.block<3, 1>(0, 3) = cam_center; Rt = C2W.inverse(); return Rt;
}
eigen matrix is stored column major by default
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Eigen::Matrix4f getWorld2View2Eigen(const Eigen::Matrix3f& R, const Eigen::Vector3f& t,
const Eigen::Vector3f& translate /= Eigen::Vector3d::Zero()/, float scale /= 1.0/) {
Eigen::Matrix4f Rt = Eigen::Matrix4f::Zero();
Rt.block<3, 3>(0, 0) = R.transpose();
Rt.block<3, 1>(0, 3) = t;
Rt(3, 3) = 1.0;
}
eigen matrix is stored column major by default
The text was updated successfully, but these errors were encountered: