Affine3f

cv::Vec3f r, t;
cv::Affine3f T(r, t);

translation_phase += CV_PI * 0.01f;
translation = sin(translation_phase);
Mat rot_mat;
Rodrigues(rot_vec, rot_mat);
Affine3f pose(rot_mat, Vec3f(translation, translation, translation));

设置立方体

在这里插入图片描述

发布了425 篇原创文章 · 获赞 59 · 访问量 15万+

猜你喜欢

转载自blog.csdn.net/qq_21950671/article/details/104240539