matlab读取点云文件

%matlab读取ply格式,效果较好,可以旋转

ptCloud = pcread('2111.ply'); % read from a PLY file
figure
pcshow(ptCloud);
title('Original Data');


%matlab 读取txt格式,不能旋转

clear;clc;
sig=importdata('tree.txt');
x=sig(:,1);
y=sig(:,2);
z=sig(:,3);

plot3(x, y, z,'k.','MarkerSize',1)
xlabel('X','Fontsize',13),ylabel('Y','Fontsize',13),zlabel('Z','Fontsize',13);
grid on


据说matlab2017a可以实现点云.ply--->.pcd格式的转换

ptCloud = pcread(‘0.ply’); % read from a PLY file
pcwrite(ptCloud,'0.pcd'); 

你可能感兴趣的:(点云,matlab)