• 大小: 12KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-03-16
  • 语言: Matlab
  • 标签: 点云  ICP  点云内部  

资源简介

经典的Matlab ICP点云配准算法,含三个可用例子。

资源截图

代码片段和文件信息


% Generate model points

xvals=linspace(02*pi500);
yvals=sin(xvals);

model=[xvals;yvals];

% Generate data points

xvals=linspace(02*pi100);
yvals=sin(xvals);

data=[xvals;yvals];

% Transform data points to their start positions

v1=0.6*(2*rand-1);
Rma=[cos(v1) -sin(v1);sin(v1) cos(v1)];

data=Rma*data;
data(1:)=data(1:)+2*randn;
data(2:)=data(2:)+2*randn;

% A plot. Model points and data points in start positions

figure(1)
plot(model(1:)model(2:)‘r.‘data(1:)data(2:)‘b.‘) axis equal

% Running the ICP-algorithm. Least squares criterion

[TRTTdataOut]=icp(modeldata);

% A plot. Model points and data points in transformed positions

figure(2)
plot(model(1:)model(2:)‘r.‘dataOut(1:)dataOut(2:)‘b.‘) axis equal


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        2654  2015-06-16 04:37  example3.m
     文件        8330  2015-06-16 04:37  icp.m
     文件       30309  2015-06-16 04:37  icpOLD.m
     文件        1639  2015-06-16 04:37  readme.txt
     文件         789  2015-06-16 04:37  example.m
     文件        1872  2015-06-16 04:37  example2.m
     文件        1314  2015-06-16 04:37  license.txt

评论

共有 条评论