Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 RGBCV::Mat对象,我想将其转换std::vector<Eigen::Vector3d>为用于 open3d 点云颜色,是否可以在没有循环的情况下执行此操作?
CV::Mat
std::vector<Eigen::Vector3d>
谢谢。
很简单,只要你反过来:
std::vector<Eigen::Vector3d> pixel_data(height * width); cv::Mat mat = cv::Mat(height, width, CV_64FC3, &(pixel_data[0](0))); fill_the_matrix_as_you_wish(mat);