pcl
pcl copied to clipboard
Generating Image from Unorganized PCD
Hi,
I have seen an exe pcl_pcd2png.exe which works on organized point clouds.
I have unorganized point clouds. Is there any way to generate images from them?
A workaround I'm using involves using the pcl::visualization class.
- Create a visualizer and add your cloud.
- Use resetCamera() or manaully set camera parameters to get the view you need.
- use saveScreenshot() to capture a png image.
This gives you a lot of freedom to mess around with the visualizer to get the exact output you need, since all of the options available in the visualizer is at your disposal.
@haritha-j Thanks for the workaround. So this means that I cannot use the exe to achieve this, but need to write my own code.
Can you direct me to the getting started guide for pcl as I am new to this library?
You can use http://pointclouds.org/documentation/tutorials/ for general instructions on getting PCL up and running. http://pointclouds.org/documentation/tutorials/pcl_visualizer.php This tutorial will help you get the visualizer running, and then you can refer to http://docs.pointclouds.org/1.10.1/classpcl_1_1visualization_1_1_p_c_l_visualizer.html regarding the methods you'll need to use.
Yes, PCD2PNG tool is not suitable for your case. With unorganized point clouds you need to render them onto a virtual camera. Unfortunately, we do not have off-the-shelf classes in PCL that can do that for you.
Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.
Any reason why this shouldn't be closed @taketwo? Should this be taken as a proposal to add ability to create png from unorganized pcd?
Only useful if you want to start a list of things user request so we can rank them and implement later on (also useful for next GSoC editions). Opening/keeping an issue open might be more valuable once we decide to assign resources to it.
I'm tagging things todo and good first issue for GSoC/GSoD
What about cloud compare feature rasterization? Points can be projected on the user specified plane( x,y z) and resolution and converted to an image