点云数据文件常用格式

您所在的位置:网站首页 ug点文件格式 点云数据文件常用格式

点云数据文件常用格式

2023-11-01 05:29| 来源: 网络整理| 查看: 265

文件类型汇总 OFF - Object File Format PLY - Polygon File Format also known as the Stanford Triangle Format PTS - Laser scan data format PTX - ASCII based interchange format for point cloud data XYZ - Based on Cartesian coordinates LAS/LAZ - The most common format for exchanging points clouds 文件格式介绍 1. OFF - Object File Format

OFF 文件格式文档 https://shape.cs.princeton.edu/benchmark/documentation/off_format.html

OFF numVertices numFaces numEdges x y z x y z ... numVertices like above NVertices v1 v2 v3 ... vN MVertices v1 v2 v3 ... vM ... numFaces like above

立方体使用 OFF 格式描述的例子:

OFF 8 6 0 -0.500000 -0.500000 0.500000 0.500000 -0.500000 0.500000 -0.500000 0.500000 0.500000 0.500000 0.500000 0.500000 -0.500000 0.500000 -0.500000 0.500000 0.500000 -0.500000 -0.500000 -0.500000 -0.500000 0.500000 -0.500000 -0.500000 4 0 1 3 2 4 2 3 5 4 4 4 5 7 6 4 6 7 1 0 4 1 7 5 3 4 6 0 2 4 2. PLY - Polygon File Format also known as the Stanford Triangle Format

PLY 文件格式文档 http://paulbourke.net/dataformats/ply/

ply format ascii 1.0 { ascii/binary, format version number } comment made by Greg Turk { comments keyword specified, like all lines } comment this file is a cube element vertex 8 { define "vertex" element, 8 of them in file } property float x { vertex contains float "x" coordinate } property float y { y coordinate is also a vertex property } property float z { z coordinate, too } element face 6 { there are 6 "face" elements in the file } property list uchar int vertex_index { "vertex_indices" is a list of ints } end_header { delimits the end of the header } 0 0 0 { start of vertex list } 0 0 1 0 1 1 0 1 0 1 0 0 1 0 1 1 1 1 1 1 0 4 0 1 2 3 { start of face list } 4 7 6 5 4 4 0 4 5 1 4 1 5 6 2 4 2 6 7 3 4 3 7 4 0 3. PTS - Laser scan data format

PTS 文件格式文档 http://paulbourke.net/dataformats/pts/

253730194 -0.41025 -2.0806 8.00981 55 52 44 65 -0.63016 -1.84527 6.59447 228 228 230 225 -0.4766 -2.14446 7.91288 60 56 54 68 -0.52017 -1.51698 7.91458 60 58 50 71 : : : : : : : : :

使用 MeshLab 打开 PTS 文件的方法 https://sourceforge.net/p/meshlab/discussion/499532/thread/6a658695/

PTS 文件无法用 MeshLab 直接打开,而 PLY 文件可以,所以可以手动将 PTS 文件转换为 PLY 文件,便可以在 MeshLab 中查看。转换方式:在 PTS 文件头加上:

ply format ascii 1.0 element vertex [pts_file_vertex_num] property float x property float y property float z end_header 4. PTX - ASCII based interchange format for point cloud data

PTX 文件格式参考文档 https://sites.google.com/site/matterformscanner/learning-references/ptx-format

PTX 点云文件头部格式:

number of rows number of columns st1 st2 st3 ; scanner registered position sx1 sx2 sx3 ; scanner registered axis 'X' sy1 sy2 sy3 ; scanner registered axis 'Y' sz1 sz2 sz3 ; scanner registered axis 'Z' r11 r12 r13 0 ; transformation matrix r21 r22 r23 0 ; this is a simple rotation and translation 4x4 matrix r31 r32 r33 0 ; just apply to each point to get the transformed coordinate tr1 tr2 tr3 1 ; use double-precision variables

PTX 文件中单个点的信息与 PTS 文件相同,相比之下,强度值 𝑖𝑛𝑡𝑒𝑛𝑠𝑖𝑡𝑦 做了归一化处理。

PTX 是一种点云数据的交换格式,使用 ASCII 编码。它使用单独扫描的概念,将每个扫描点都定义在自己的坐标系中,然后将所有这些点"注册"到单个坐标系中。每个点的数据存储在它的原始坐标系中,点云的转换矩阵作为文件的标头信息提供。

5. XYZ - Based on Cartesian coordinates

XYZ 文件格式,是一种非标准化的文件格式。它基于笛卡尔坐标 (x, y, z),以 ASCII 文本行形式传递数据。

虽然使用 XYZ 文件的程序之间具有广泛的兼容性,但是由于缺乏标准化的单元和规范,除非提供额外的信息,否则使用这种数据格式存在根本性的缺陷。

XYZ 的一种格式实例:XYZ format - MIT

X1,Y1,Z1,value X2,Y2,Z2,value X3,Y3,Z3,value etc.

stackoverflow 推荐的 ASCII 点云加载程序:http://www.danielgm.net/cc/

原回答:https://stackoverflow.com/questions/41267210/point-cloud-xyz-format-specification

6. LAS/LAZ - The most common format for exchanging points clouds

LAS/LAZ 参考文档 https://www.usna.edu/Users/oceano/pguth/md_help/html/las_format.htm

LAS 格式旨在作为激光扫描仪点云数据的交换格式。它由美国摄影测量和遥感学会(ASPRS)维护。

LAZ 文件格式则是 LAS 的无损压缩版本,为了提高效率。LAS 文件格式是二进制的。

LAS 是遥感行业使用最广泛的点云数据文件格式。由 ASPRS 维护的官方网站在这里。目前 ASPRS LAS 规范的维护转移到了GitHub。

References Data Formats: 3D, Audio, Image http://paulbourke.net/dataformats/ 3D file format - http://edutechwiki.unige.ch/en/3D_file_format PTS file from Autodesk Recap Pro https://sourceforge.net/p/meshlab/discussion/499532/thread/6a658695/ File Formats – Exporting your data http://gmv.cast.uark.edu/uncategorized/file-formats-exporting-your-data/ Point cloud XYZ format https://stackoverflow.com/questions/41267210/point-cloud-xyz-format-specification Common point cloud file formats in detail


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3