Point cloud XYZ format specification

南楼画角 提交于 2019-12-05 01:13:59

No, there is not an official specification about the .xyz format for point clouds.

The .xyz format can be considered as part of a more general type of file formats: ASCII point cloud. You can consider members of this group many other extensions like: .asc,.txt,.pts

The problem is that because of that lack of specification the contents of the file may vary according to the creator.

The most logical thing would be that the first 3 columns always represent the X,Y,Z coordinates and the rest of the columns represent some scalar field associated to that point (Maybe R,G,B values, or Nx,Ny,Nz, etc)

If you want to consider all the possibilities you would need to take in account not only a variable number of columns but also the ASCII character used for separating each column and the possible existence of 1 or more "header" lines at the beggining of the file.

The best ASCII point cloud loader that I'm aware of is the included in CloudCompare.

Here is a screenshot of the dialog:

And a link to the source code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!