码迷,mamicode.com
首页 > 其他好文 > 详细

matlab对点云旋转平移

时间:2019-05-13 23:15:42      阅读:316      评论:0      收藏:0      [点我收藏+]

标签:fine   point   mamicode   bsp   info   obj   show   alt   技术   

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对点云旋转平移

标签:fine   point   mamicode   bsp   info   obj   show   alt   技术   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!