MATLAB Answers

How to save a point cloud object??

8 views (last 30 days)
Priya
Priya on 2 Mar 2016
Answered: Dima Lisin on 2 Mar 2016
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?

  1 Comment

Sign in to comment.

Accepted Answer

Dima Lisin
Dima Lisin on 2 Mar 2016
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 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.