资源简介
基于MATLAB的三维点云的配准和融合
代码片段和文件信息
%% 点云的配准
clc;
clear;
close all;
%% 导入数据
dataFile = fullfile(toolboxdir(‘vision‘) ‘visiondata‘ ‘livingRoom.mat‘);
load(dataFile);
%% 依次将点云数据存出来
for i=1:length(livingRoomData)
pcwrite(livingRoomData{i}[‘house_init‘num2str(i)]‘PLYFormat‘‘binary‘);
end
%% 参考点云数据
% Extract two consecutive point clouds and use the first point cloud as
% reference.
ptCloudRef = livingRoomData{1};
ptCloudCurrent = livingRoomData{2};
%% 显示点云
figure;
pcshow(ptCloudRef);
figure;
pcshow(ptCloudCurrent);
%% 点云的预处理
% Note that the downsampling step does not only speed up the registration
% but can also improve the accuracy.
gridSize = 0.1;
fixed = pcdownsample(ptCloudRef ‘gridAverage‘ gridSize);
moving = pcdownsample(ptCloudCurrent ‘gridAverage‘ gridSize);
%% 确定点云之间的变换关系
% finding the rigid transformation for aligning the second point cloud with the first point cloud.
tform = pcregrigid(moving fixed ‘Metric‘‘pointToPlane‘‘Extrapolate‘ true);
ptCloudAligned = pctransform(ptCloudCurrenttform);
%% 点云的融合
%The overlapped region is filtered using a 1.5cm box grid filter.
%Increase the merge size to reduce the storage requirement of the
%resulting scene point cloud and decrease th
- 上一篇:基于MATLAB的GPS网平差
- 下一篇:LDPC编码构造的matlab实现
相关资源
- LDPC编码构造的matlab实现
- 基于MATLAB的GPS网平差
- MATLAB目标跟踪仿真小程序 (1)
- 广义预测控制matlab仿真程序
- 无线通信MIMO VBLAST的matlab仿真
- 卡尔曼推导流程记录和一个matlab例程
- matlab 边缘检测并求出面积,周长,质
- 基于matlab的人脸识别算法(PCA
- matlab车牌识别有gui
- Apriori算法 matlab
- 语音信号时域波形\\短时幅值和短时过
- MATLAB 轨迹模拟程序
- Isight集成ProE ICEM CFX MATLAB示范
- 波达方向DOA估计的Capon算法以及Music算
- 基于cv模型的kalman 滤波matlab程序,有
- Matlab 2018a Win64 Crack.rar
- matlab几种计算互信息的方法
- 文档图像倾斜校正Matlab:霍夫变换原
- 无刷直流电机MATLAB模型.rar
- 一个简单的matlab图形界面程序GUI
- matlab绘制相图
- matlab 信号处理超级学习手册的程序代
- 30个MATLAB—GUI案例源码
- MATLAB四阶龙格库塔法 求解微分方程数
- MATLAB使用欧拉Euler法求解微分方程组
- 三次均匀B样条插值计算 matlab
- matlab中cftool拟合步骤
- 信息理论与编码的MATLAB实验
- 抛物线差分格式求解matlab程序
- DDC的MATLAB代码
评论
共有 条评论