资源简介

利用多项式纠正(一次项)进行几何纠正,纠正过程采用反解法,重采样方法采用双线性内插。

资源截图

代码片段和文件信息

clear all;
imfinfo(‘C:\Documents and Settings\Administrator\桌面\image\实习2-参考图像.bmp‘)
imfinfo(‘C:\Documents and Settings\Administrator\桌面\image\实习2-待纠正图像.bmp‘)
I1=imread(‘C:\Documents and Settings\Administrator\桌面\image\实习2-参考图像.bmp‘);
I2=imread(‘C:\Documents and Settings\Administrator\桌面\image\实习2-待纠正图像.bmp‘);

%%R1=I1(::1);
%G1=I1(::2);
%B1=I1(::3);

%R2=I2(::1);
%G2=I2(::2);
%B2=I2(::3);

%subplot(231);
%imshow(R2);
%subplot(232);
%imshow(G2);
%subplot(233);
%imshow(B2);

%参考图像
y=[302 463 455 588 591 357]‘;
x=[161 551 587 623 641 611]‘;
%待纠正图像
yy=[287 378 364 488 488 263]‘;
xx=[113 526 560 619 637 566]‘;

A=zeros(63);
for m = 1:6
    A(m1) = 1;
    A(m2) = x(m);
    A(m3) = y(m);
end

delta_a = inv(A‘*A)*A‘*xx;
delta_b = 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3375  2009-12-24 14:30  image1\new.asv

     文件       3375  2009-12-24 14:34  image1\new.m

     文件       4389  2009-12-24 14:52  image1\shixi3.asv

     文件       4386  2009-12-24 14:52  image1\shixi3.m

    ..A.SH.     17408  2009-12-23 15:59  image1\Thumbs.db

     文件    1564606  2008-11-14 10:43  image1\实习2-参考图像.bmp

     文件    1160766  2008-11-13 16:41  image1\实习2-待纠正图像.bmp

     文件     387982  2009-12-03 12:06  image1\实习3.bmp

     目录          0  2010-01-04 21:45  image1

----------- ---------  ---------- -----  ----

              3146287                    9


评论

共有 条评论