資源簡介
用于圖形匹配很好的源代碼,老外寫得,有需要的可以下載學習。

代碼片段和文件信息
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
評論
共有 條評論