How to create point cloud with colour
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello,
I am trying to export a pointcloud as a .ply or .wrl to view in another program such as Meshlab. I have two arrays of equal size (vertices and colors(RGB)) . I can create a mesh using the vertices array, but when viewing the pointcloud it is monochrome. So, my question is how do I add the colour values to the vertices, to end up with a color appropriate pointcloud? I've looked into texture mapping, but I have not been successful with the surf and mesh functions. Any help is appreciated.
1 comentario
Anirban Roy
el 28 de Ag. de 2015
Try
1. " pointCloud": This makes a point cloud from 3D points and texture
ptCloud = pointCloud(xyzPoints, 'Color', alignedColorImage); % 3D colored point cloud
Then use
2. " pcwrite": This exports the point cloud as a PLY file with color informatoion
pcwrite(ptCloud,'Ply_file_name','PLYFormat','binary'); % Convert to .PLY format
Hope this helps
Anirban
Respuestas (1)
Walter Roberson
el 7 de Mzo. de 2014
patch() allows you to assign vertex color.
Or, more directly, scatter3(x, y, z, pointsize, color)
2 comentarios
Alvaro
el 16 de Sept. de 2014
Hi Ryan, do you find a way to export as ply/wrl the colored mesh ? VBR
Ver también
Categorías
Más información sobre Point Cloud Processing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!