MATLAB 对Ply文件进行 读取、显示、连线操作
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); % 保存图片
蒙特卡洛方法
画矩形 :
选取矩形框内数据:
-
figure, imshow("pout.tif");
-
h = imrect;
- 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); % 保存图片
蒙特卡洛方法
声明:该文观点仅代表作者本人,入门客AI创业平台信息发布平台仅提供信息存储空间服务,如有疑问请联系rumenke@qq.com。
copyright © 2008-2019 入门客AI创业平台 版权所有 备案号:湘ICP备2023012770号
