Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

if pcl::PointXYZ is just a struct with 3 float, just do a reinterpret_cast of the pointer to your data to a void* and then use one of the cv::Mat constructors using that.

The memory mapping between the pcl vector<pcl::pointxyz> is the same as storing 3 columns and your vector size rows.