【问题标题】:PLY file format - what is the correct header for the point cloud with color RGB info?PLY 文件格式 - 带有颜色 RGB 信息的点云的正确标题是什么?
【发布时间】:2021-05-16 17:26:48
【问题描述】:

我正在尝试导出点云,但遇到了第三方工具不接受我的文件的问题。

我找不到嵌入颜色数据的有效 PLY 点云文件的具体示例(我只看到带有颜色数据的二进制文件)。我从不同的来源拼凑出来的,但是当我导出带有这个标题的文件时,我无法在 Mac 上显示它,或者在a web based viewer中查看它@

  • 一个 ascii PLY 文件可以有 100 万个或更多点吗?
  • 有效的 PLY 文件可以有 0 个面吗?
  • 是否需要定义property list uchar int vertex_indices
  • float 是正确的定义,还是需要像 float32 一样指定?
  • 每行末尾是否需要换行符\n 或两者都需要\r\n

我的标题:

ply
format ascii 1.0
element vertex \(vertexCount)
property float x
property float y
property float z
property uchar red
property uchar green
property uchar blue
property uchar alpha
element face 0
property list uchar int vertex_indices
end_header
0.391046 0.00335238 -1.0231568 114 110 94 255
0.39227518 0.0033548833 -1.0226241 114 111 93 255
// no faces

基于 Web 的查看器确实会加载此类文件(但我在这些文档中看不到这些类型定义:http://paulbourke.net/dataformats/ply/

ply
format ascii 1.0
element vertex 2
property float32 x
property float32 y
property float32 z
element face 13594
property list uint8 int32 vertex_indices
end_header
1.13927 0.985002 0.534429 
1.11738 0.998603 0.513986 
3 0 1 2 
3 0 2 3 
//...
3 6539 6367 6736 
3 6539 6736 6905 

【问题讨论】:

    标签: point-clouds ply-file-format


    【解决方案1】:

    此格式已被点云库 PLY 阅读器接受:

    ply
    format ascii 1.0
    element vertex \(vertexCount)
    property float x
    property float y
    property float z
    property uint8 red
    property uint8 green
    property uint8 blue
    end_header
    -0.089456566 0.21365404 -0.7840536 81 51 19
    -0.0884854 0.21366915 -0.7838928 82 52 20
    

    【讨论】:

    • 可以确认 meshlab(以及 pymeshlab 和 VGC)可以读取该 .ply 文件。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-04
    • 2014-01-20
    • 2021-09-23
    • 2020-01-28
    • 1970-01-01
    • 1970-01-01
    • 2022-01-23
    相关资源
    最近更新 更多