资源简介
用于图形匹配很好的源代码,老外写得,有需要的可以下载学习。
代码片段和文件信息
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
相关资源
- tophat变换matlab代码
- sac文件读取函数matlab代码
- 人脸特征点手动标定的matlab程序
- matlab实现的基于颜色直方图的特征匹
- 自适应信号与系统 LMS与RLS算法收敛
- 相空间重构代码-matlab
- css算法 角点检测 matlab
- 非完整轮式移动机器人运动规划与控
- 分水岭算法分割苹果(matlab代码实现
- 该源代码的功能是用matlab来实现链码
- matlab的GUI录音程序,带有界面文件。
- 非常经典的MATLAB人脸识别程序可显示
- 1.5维普matlab程序
-
OQPSK的Matlab_Simuli
nk调制解调仿真系统 - Matlab 2018b 破解文件
- 降低OFDM系统PAPR算法(PTS-SLM-C变换)
- Classification matlab code - Quadratic Discrim
- 数字下变频MATLAB仿真
- UWB matlab程序
- 超分辨的MATLAB程序
- 图像相似度量Matlab代码
- 数字信号处理理论算法与实现课后习
- haar人脸 人眼检测 MATLAB
- s变换的matlab程序
- 应用Matlab产生各种数字调制信号以及
- 基于MATLAB的线性二次型最优控制设计
- KPCA故障诊断matlab实现182088
- 求两幅图像间的-相关系数-matlab-M文件
- matlab中宽带信号的产生
- 基于matlab的车型识别源代码
评论
共有 条评论