資源簡(jiǎn)介
剛性配準(zhǔn)matlab function,含圖片, Author: Vlachos Marios,

代碼片段和文件信息
%*************************************************************************%
%******************??????Author:?Vlachos?Marios?????????******************%
%******************???Designed?by:?Vlachos?Marios???????******************%
%******************?Electrical?and?Computer?Engineer????******************%
%******************??????????PhD?Student????????????????******************%
%******************???University?of?Patras?Greece??????******************%
%******************??????????8?November?2005????????????******************%
%***************?email:?mvlachos@george.wcl2.ee.upatras.gr?***************%
%*************************************************************************%
function?[err]=rescale2(scaleII_transform);
[M?N]=size(I);
%?Apply?transformation?with?various?scale?parameters?until?the?correlation?
%?between?the?base?and?the?aligned?image?is?acceptable??
%**************************************************************************
u=scale(1);
dx=scale(2);
dy=scale(3);
Trotation=[cos(u)?sin(u)?0;?-sin(u)?cos(u)?0;?0?0?1;];
Ttranslation=[1?0?0;?0?1?0;?dx?dy?1;];
T=Trotation*Ttranslation;
Tform=maketform(‘a(chǎn)ffine‘T);
I_aligned=imtransform(I_transformTform‘Xdata‘[1?N]‘Ydata‘[1?M]);
%**************************************************************************
%?Find?the?correlation?between?the?base?and?the?aligned?images
%**************************************************************************
err=-abs(corr2(I_alignedI));
%**************************************************************************
end
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????1244214??2005-02-22?21:02??registration\P10001.bmp
?????文件????1244214??2005-02-22?21:03??registration\P10200.bmp
?????文件???????1578??2005-11-08?11:51??registration\rescale2.m
?????文件???????3447??2005-11-08?11:50??registration\Unaided_Image_Registration3.m
?????目錄??????????0??2012-07-18?10:15??registration
-----------?---------??----------?-----??----
??????????????2493453????????????????????5
評(píng)論
共有 條評(píng)論