我是靠谱客的博主 呆萌飞机,这篇文章主要介绍Matlab点云ply文件的读入与写出,现在分享给大家,希望可以做个参考。

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% read in %1 tic p1=dlmread('3D.txt'); toc %1.3s %2 tic p2=importdata('3D.txt'); toc %1.2s %3 PLY file tic p3=pcread('p1_bi.ply'); toc %1.2s %% write out %1 tic dlmwrite('p1.txt',p1); toc %22s %2 tic;fid = fopen('p2.txt','w'); for i=1:size(p1,1) fprintf(fid,'%f %f %f rn',[p1(i,1),p1(i,2),p1(i,3)]); end fclose(fid); toc %18s %3 pcwrite PCD or PLY ptCloud = pointCloud(p1); tic pcwrite(ptCloud,'p1_bi.ply','PLYFormat','binary'); toc %0.2s tic pcwrite(ptCloud,'p1_as.ply','PLYFormat','ascii'); toc %2s %% show 3d point figure;pcshow(ptCloud); figure;pcshow(p1);

 

最后

以上就是呆萌飞机最近收集整理的关于Matlab点云ply文件的读入与写出的全部内容,更多相关Matlab点云ply文件内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(53)

评论列表共有 0 条评论

立即
投稿
返回
顶部