Reading .ply files in matlab

How can I read a mesh file (.ply) and display it in Matlab?

Also, how can I change the camera viewpoint of a specified model?

thanks

+4
source share
2 answers

Follow this link: http://people.sc.fsu.edu/~jburkardt/m_src/ply_display/ply_display.m

and save this file.

ply_display.m is a Matlab function (unlike the Matlab script). Matlab function usually requires input. You can call the ply_display function while in the same folder as the .m file. You call it this:

 ply_display('file.ply') %where %'file.ply' is the name of the file 
+4
source

I see that this question was raised 2 years ago. But MATLAB R2015a has what you wanted:

ptCloud = pcread (file name)

http://www.mathworks.com/help/vision/ref/pcread.html

+2
source

Source: https://habr.com/ru/post/1486798/


All Articles