资源简介
用于图形匹配很好的源代码,老外写得,有需要的可以下载学习。

代码片段和文件信息
function [TR TT] = icp(modeldatamax_itermin_iterfittingthresinit_flagtes_flagrefpnt)
% ICP Iterative Closest Point Algorithm. Takes use of
% Delaunay tesselation of points in model.
%
% Ordinary usage:
%
% [R T] = icp(modeldata)
%
% ICP fit points in data to the points in model.
% Fit with respect to minimize the sum of square
% errors with the closest model points and data points.
%
% INPUT:
%
% model - matrix with model points [Pm_1 Pm_2 ... Pm_nmod]
% data - matrix with data points [Pd_1 Pd_2 ... Pd_ndat]
%
% OUTPUT:
%
% R - rotation matrix and
% T - translation vector accordingly so
%
% newdata = R*data + T .
%
% newdata are transformed data points to fit model
%
%
% Special usage:
%
% icp(model) or icp(modeltes_flag)
%
% ICP creates a Delaunay tessellation of points in
% model and save it as global variable Tes. ICP also
% saves two global variables ir and jc for tes_flag=1 (default) or
% Tesind and Tesver for tes_flag=2 which
% makes it easy to find in the tesselation. To use the global variables
% in icp put tes_flag to 0.
%
%
% Other usage:
%
% [R T] = icp(modeldatamax_itermin_iter...
% fittingthresinit_flagtes_flag)
%
% INPUT:
%
% max_iter - maximum number of iterations. Default=104
%
% min_iter - minimum number of iterations. Default=4
%
% fitting - =2 Fit with respect to minimize the sum of square errors. (default)
% alt. =[2w] where w is a weight vector corresponding to data.
% w is a vector of same length as data.
% Fit with respect to minimize the weighted sum of square errors.
% =3 Fit with respect to minimize the sum to the amount 0.95
% of the closest square errors.
% alt. =[3lambda] 0.0 % In each iteration only the amount lambda of the closest
% points will affect the translation and rotation.
% If 1 % of the closest points will affect the translation and
% rotation in each iteration.
%
% thres - error differens threshold for stop iterations. Default 1e-5
%
% init_flag - =0 no initial starting transformation
% =1 transform data so the mean value of
% data is equal to mean value of model.
% No rotation. (init_flag=1 default)
%
% tes_flag - =0 No new tesselation has to be done. There
% alredy exists one for the current model points.
% =1 A new tesselation of the model points will
% be done. (default)
% =2 A new tesselation of the model points will
% be done. Another search strategy than tes_flag=1
% =3 The c
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 102 2008-08-02 22:57 loadFile.do_files\00th.png
文件 105 2008-08-02 22:57 loadFile.do_files\50th.png
文件 96 2008-08-02 22:57 loadFile.do_files\90th.png
文件 646 2008-08-02 22:57 loadFile.do_files\blue_band_536x5.gif
文件 57 2008-08-02 22:57 loadFile.do_files\bullet.gif
文件 6942 2008-08-02 22:57 loadFile.do_files\Captcha.htm
文件 10514 2008-08-02 22:57 loadFile.do_files\cmnty1.css
文件 70 2008-08-02 22:57 loadFile.do_files\doc.gif
文件 97 2008-08-02 22:57 loadFile.do_files\dots_rnav.gif
文件 152 2008-08-02 22:57 loadFile.do_files\dots_rnav_top.gif
文件 64 2008-08-02 22:57 loadFile.do_files\exclamation.gif
文件 145 2008-08-02 22:57 loadFile.do_files\fullstar.gif
文件 145 2008-08-02 22:57 loadFile.do_files\fullstar_grey.gif
文件 117 2008-08-02 22:57 loadFile.do_files\ltblue_top_nav_trans.gif
文件 155 2008-08-02 22:57 loadFile.do_files\mail_brdr.gif
文件 2569 2008-08-02 22:57 loadFile.do_files\mlc_logo.gif
文件 10587 2008-08-02 22:57 loadFile.do_files\preview.jpg
文件 64 2008-08-02 22:57 loadFile.do_files\question.gif
文件 43 2008-08-02 22:57 loadFile.do_files\s87229918487815.gif
文件 3444 2008-08-02 22:57 loadFile.do_files\site3.css
文件 43 2008-08-02 22:57 loadFile.do_files\spacer.gif
文件 66 2008-08-02 22:57 loadFile.do_files\submitfile.gif
文件 39399 2008-08-02 22:57 loadFile.do_files\s_code.js
文件 260 2008-08-02 22:57 loadFile.do_files\xm
目录 0 2008-08-02 22:57 loadFile.do_files
文件 45436 2008-08-02 22:57 loadFile.do.htm
文件 6381 2008-08-02 22:57 icp.gif
文件 30309 2008-08-02 22:57 icp.m
----------- --------- ---------- ----- ----
158008 28
............此处省略1个文件信息
- 上一篇:tophat变换matlab代码
- 下一篇:SIRS模型传染曲线生成代码182621
相关资源
- matlab_OFDM调制解调(来自剑桥大学)
- Matlab路面裂缝识别69319
- 高灵敏度GPS接收机MATLAB仿真,附捕获
- 基于MATLAB的质点弹道计算与外弹道优
- 阵列天线的matlab仿真
- MATLAB 经典程序源代码大全
- MATLAB小波软阈值去噪代码33473
- 天线阵的波束形成在MATLAB仿真程序及
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
评论
共有 条评论