How to save a point cloud object??
4 views (last 30 days)
Show older comments
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?
Accepted Answer
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
More Answers (0)
See Also
Categories
Find more on Point Cloud Processing in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!