[Paraview] 3D point cloud with color

Andrew Maclean andrew.amaclean at gmail.com
Thu Feb 23 23:42:41 EST 2012


David's suggestion below is very good if you have many large files as
the processing will be really fast.
Using VTK you can easily adopt the following approach:
1) Develop a reader for a single file.
2) Extend it to process multiple files e.g. all files in a directory.
3) Develop a GUI to control the process using QT/QVTK - makes
selecting files easier.
4) Then you can optionally write extra code to control what parts of
the point cloud are selected. The GUI can then be used to control your
selection parameters.

This is really useful if you have point clouds corresponding to some
time span e.g. laser scans of a mine pit, as you can ultimately
animate the data using ParaView.

Andrew



>>> I have been working with 3D stereo reconstruction. So, I have huge 3d point clouds co-registered with color in this format [X Y Z R G B] (the first three vector columns specify the location of the single point and the last three one its color in RGB space). I have been trying to display the data in Paraview without success.
>>>
>>>
>>>
>>> I use the “table to points” filter to show the 3D coordinates but then I do not know  how to specify the color of each single point using its RGB components. Can you please help me out?
>
> If you're more comfortable in c++ you could use VTK to parse the file,
> construct a polydata, and then write a vtp file. Here are the examples
> you'd need:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP
>
> Then Paraview can easily read this vtp file.
>
> David
>
>

-- 
___________________________________________
Andrew J. P. Maclean

___________________________________________


More information about the ParaView mailing list