Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Point Clouds File Formats (PCL)

I’m new to Point Clouds and I’m very enthusiastic about the whole concept so I searched a bit and found the Point Cloud Library (PCL).

http://www.pointclouds.org

I was expecting PCL to load most of the popular point cloud file formats but as far as I can tell, PCL seems to orbit around their own file format, the PCD.

I’ve been poking around but I'd like more insights on a few things:

What are the most commonly used point cloud file formats?

Which point cloud file formats are supported through PCL?

EDIT: Is there any collections of point cloud files available? Ideally, XYZRGB to play with.

Thank you,

like image 272
neosettler Avatar asked May 29 '17 23:05

neosettler


People also ask

What is PCL in image processing?

The Point Cloud Library (PCL) is an open-source library of algorithms for point cloud processing tasks and 3D geometry processing, such as occur in three-dimensional computer vision.

What is PCL tool?

The Point Cloud Library (PCL) is a standalone, large scale, open project for 2D/3D image and point cloud processing. PCL is released under the terms of the BSD license, and thus free for commercial and research use.

How do point cloud files work?

A point cloud is a set of data points in space. The points may represent a 3D shape or object. Each point position has its set of Cartesian coordinates (X, Y, Z). Point clouds are generally produced by 3D scanners or by photogrammetry software, which measure many points on the external surfaces of objects around them.


Video Answer


1 Answers

Welcome to the fascinating point cloud world! If you like Python, contributions are welcome at https://github.com/daavoo/pyntcloud . /end recruiting.

What are the most commonly used point cloud file formats?

  • General pourpose 3D file formats

Well ... almost any general pourpose 3D file format implicitly supports point clouds because those formats usually store a bunch of polygons, and in order to define a polygon you must define it's vertices.

If you think carefully, those vertices are just point clouds.

A good example of this is the .ply file format. Wich is a common choice to export point clouds in many photogrammetry (one of the ways to generate point clouds from the real world) softwares:

  • http://www.agisoft.com/
  • https://pix4d.com/
  • https://colmap.github.io/ <- OPEN SOURCE AND FREE

Other common formats of this type are .obj , .stl , .off , and more.

  • Lidar formats

This formats are designed for storing point clouds + metadata (mostly geospatial stuff).

Probably the most common is .las .

Many Lidar manufactures also have their own privative format.

  • Robotics

If someone is into robotics, he will be into ROS.

If someone is into ROS and point clouds, he will use sensor_msgs/PointCloud2.

If someone uses sensor_msgs/PointCloud2, he will convert it to .pcd because PCL is the de facto library for working with point clouds in ROS.

  • ASCII formats

In addition to all this, you can store the point cloud information in a plain text file separating the columns with comma, tab, spaces or wathever and name it .xyz, .pts or something like that. There is no standard and people just do whatever they like. ASCII formats are slow to read and memmory inefficient for big point clouds.

Which point cloud file formats are supported through PCL?

Many of the above.

http://docs.pointclouds.org/trunk/group__io.html

Is there any collections of point cloud files available? Ideally, XYZRGB to play with.

  • Do it yourself

You can use one of the above mentioned photogrammetry softwares to generate point clouds yourself with just a camera. It's a lot of fun.

You can also use some 3D modeling software like Blender and then generate a point cloud from the exported mesh. I wrote a post about it:

https://medium.com/@daviddelaiglesiacastro/3d-point-cloud-generation-from-3d-triangular-mesh-bbb602ecf238

  • PCD

https://github.com/PointCloudLibrary/data

  • PLY

https://people.sc.fsu.edu/~jburkardt/data/ply/ply.html

  • LAS

http://opentopo.sdsc.edu/datasets?listAll=true

Spain has a national project with lidar data for all the country free to download:

http://centrodedescargas.cnig.es/CentroDescargas/index.jsp

Maybe other countries have something similar.

like image 148
David de la Iglesia Avatar answered Oct 24 '22 04:10

David de la Iglesia