Load png to pointcloud

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Load png to pointcloud

KenChiang
This post was updated on .
Hi all,
I am using png to pcd converter to load my png data into pointcloud.
However, Is there a way that can load .png file directly to pointcloud?

I am trying to load png file directly like following without success...
the function "pcl::io::load" I found in ( http://docs.pointclouds.org/trunk/namespacepcl_1_1io.html )

std::string rgbfile = "rgb/1341841278.842669.png";
pcl::io::load<pcl::PointXYZRGB>(rgbfile, *rgbcloud);
std::string depthfile = "depth/1341841278.842683.png";
pcl::io::load<pcl::PointXYZ>(depthfile, *depcloud);


Here is compiling message:

readPNG.cpp:(.text.startup+0xe0): undefined reference to `int pcl::io::load<pcl::PointXYZRGB>(std::string const&, pcl::PointCloud<pcl::PointXYZRGB>&)'
readPNG.cpp:(.text.startup+0x103): undefined reference to `int pcl::io::load<pcl::PointXYZ>(std::string const&, pcl::PointCloud<pcl::PointXYZ>&)'


I am wondering If there is a way to load .png file to pointcloud directly...
or by using OpenCV mat and then convert it to pointcloud?

Thanks!

Best,
Chiang
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Load png to pointcloud

alic
This post has NOT been accepted by the mailing list yet.
Hi, I'm also struggling with the same problem. Could you please tell me if you've found any solution? Thanks.
Loading...