How to save a point cloud object??

4 次查看(过去 30 天)
Hi, I am working on 3D reconstruction. I got the output as 3D image displayed in X,Y and Z axes. But how to save the output of showpointcloud in PLY format. When i tried using pcwrite, i got the error as type of the input was incorrect. The input to pcwrite should be of format of pointCloud object. As per the matlab documentation, the output of reconstruct scene is pointCloud object. But i am getting the output of reconstructscene in 'single' format. Its dimension is M*N*3. When i tried using the inbuilt example in 'stereo calibration and scene reconstruction' also, the output of reconstruct scene stored as Point3D is in 'single' format. How to convert this object as pointcloud object so that i can convert it to ply format??
And when 3D image is stored in ply format, will it be suitable for 3D monitor display?

采纳的回答

Dima Lisin
Dima Lisin 2016-3-2
Hi Priya,
This confusion is an unfortunate result of a name conflict. reconstructScene returns an M-by-N-by-3 array of xyz coordinates. To use pcwrite you have to create a pointCloud object from it.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Point Cloud Processing 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by