Adding color to vertex points in ply format

谁说胖子不能爱 提交于 2019-12-12 12:28:52

问题


I have a 3D point cloud each with different color/values attribute attached to each vertex of XYZ points.

The Raw data is in simple .txt / csv form in columns i.e x, y, z, V1, V2, V3 and a new line for next point I am trying to use .ply to make images. I want to create a 3D image such as:

.

What is the appropriate code in ply format to color each surface or vertex based on each of these values? I want to create multiple maps with the same shape but mapping different colors to the surface.


回答1:


The PLY format supports vertex color by defining

property uchar red                   
property uchar green
property uchar blue

in the header. The RGB values in [0, 255] can be added after each vertex coordinates.

If you want to define multiple color values attached to each vertex, use user-defined elements. See examples here: http://paulbourke.net/dataformats/ply/



来源:https://stackoverflow.com/questions/17122934/adding-color-to-vertex-points-in-ply-format

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