牛骨文教育服务平台(让学习变的简单)
博文笔记

MATLAB 对Ply文件进行 读取、显示、连线操作

创建时间:2016-10-27 投稿人: 浏览次数:491


1、函数:pcread


showPointCloud([x_s(:),y_s(:),z_s(:)+4]);
title("Sphere with the default color map");
xlabel("X");
ylabel("Y");
zlabel("Z");
hold on,
showPointCloud([x_t(:),y_t(:),z_t(:)]);

for k = 1:size(matchedPointsValid,1)
x = [matchedPointsValid(k,7) matchedPointsValid(k,10)];
y = [matchedPointsValid(k,8) matchedPointsValid(k,11)];
z = [matchedPointsValid(k,9)+4  matchedPointsValid(k,12)];
plot3(x,y,z,"r.-");
hold on,
end
    saveas(hf,matched_points_file);  % 保存图片


蒙特卡洛方法


画矩形 :


选取矩形框内数据:

  1. figure, imshow("pout.tif");
  2. h = imrect;
  3. position = wait(h);



























1、函数:pcread


showPointCloud([x_s(:),y_s(:),z_s(:)+4]);
title("Sphere with the default color map");
xlabel("X");
ylabel("Y");
zlabel("Z");
hold on,
showPointCloud([x_t(:),y_t(:),z_t(:)]);

for k = 1:size(matchedPointsValid,1)
x = [matchedPointsValid(k,7) matchedPointsValid(k,10)];
y = [matchedPointsValid(k,8) matchedPointsValid(k,11)];
z = [matchedPointsValid(k,9)+4  matchedPointsValid(k,12)];
plot3(x,y,z,"r.-");
hold on,
end
    saveas(hf,matched_points_file);  % 保存图片


蒙特卡洛方法










声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。