首页 > 其他 > 详细

matlab对点云旋转平移

时间:2019-05-13 22:39:48      阅读:620      评论:0      收藏:0      [点我收藏+]

1.显示茶壶点云

ptCloud = pcread(‘teapot.ply‘);
figure(1)
pcshow(ptCloud);
title(‘Teapot‘);

技术分享图片

 

2.Create a transform object with 30 degree rotation along z -axis and translation [5,5,10].

创建一个沿z轴旋转30度并平移的变换对象[5,5,10].
A = [cos(pi/6) sin(pi/6) 0 0; ...
-sin(pi/6) cos(pi/6) 0 0; ...
0 0 1 0; ...
5 5 10 1];
tform1 = affine3d(A);

3.Transform the point cloud.
ptCloudTformed = pctransform(ptCloud,tform1);

figure(2);
pcshow(ptCloudTformed);
title(‘Transformed Teapot‘);

技术分享图片

 

matlab对点云旋转平移

原文:https://www.cnblogs.com/yibeimingyue/p/10859349.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!