跪求双线性插值算法的例子,在线等 如题,在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.wanfangdata.com.cn/qikan/periodical.Articles/bjdzkjxyxb/bjdz2004/0404pdf/040406.pdf不过要帐号的,我也没 Bilinear Interpolation Algorithm%========================================%% Bilinear Interpolation Algorithm %% created by linxin %% 11.24.2005 %% matlab resource %%========================================%I=imread('LENA256.BMP');imshow(I)[imagewidth,imageheight]=size(I);width=512;height=512;X=uint8(zeros(width,height));wscale=imagewidth/width;hscale=imageheight/height;for i=1:width for j=1:height x=i*wscale; y=j*hscale; if(x==floor(x)) & (y==floor(y)) X(i,j)=I(int16(x),int16(y)); % x,y are integer else if(floor(x)==0) | (floor(y)==0) % exceed the index X(i,j)=I(1,1); else x11=double(I(floor(x),floor(y))); x12=double(I(floor(x),ceil(y))); x21=double(I(ceil(x),floor(y))); x22=double(I(ceil(x),ceil(y))); Wx1=1-(x-floor(x)); Wx2=x-floor(x); Wy1=1-(y-floor(y)); Wy2=y-floor(y); X(i,j)=[Wx1 Wx2]*[x11 x12;x21 x22]*[Wy1;Wy2]; % caulate x(i,j) end endendendfigureimshow(X); http://community.csdn.net/Expert/topic/4439/4439793.xml?temp=8.420962E-02数学的什么线都有你下下看还有源代码 md,还要多求一个算法的例子http://community.csdn.net/Expert/TopicView.asp?id=4661338 VS2010安装水晶报表的问题 for循环增量问题 把文本框里面的值添加到ListBox里面!!代码 关于.net高性能查询的问题 登陆验证语句哪有错? 正则表达式有没有可能做到匹配所有的html标签,除了br,image,sup,sub以外??? DataGrid分页的小问题? 这么简单的程序都会出错?大家看一下. 为什么保存不了记录? 刚学c#,有个弱智得小问题 如何将xml文件中的记录更新到sqlserver中 如何使用程序一运行就最小化到系统托盘
% Bilinear Interpolation Algorithm %
% created by linxin %
% 11.24.2005 %
% matlab resource %
%========================================%I=imread('LENA256.BMP');
imshow(I)[imagewidth,imageheight]=size(I);width=512;
height=512;
X=uint8(zeros(width,height));wscale=imagewidth/width;
hscale=imageheight/height;for i=1:width
for j=1:height
x=i*wscale;
y=j*hscale;
if(x==floor(x)) & (y==floor(y))
X(i,j)=I(int16(x),int16(y)); % x,y are integer
else
if(floor(x)==0) | (floor(y)==0) % exceed the index
X(i,j)=I(1,1);
else
x11=double(I(floor(x),floor(y)));
x12=double(I(floor(x),ceil(y)));
x21=double(I(ceil(x),floor(y)));
x22=double(I(ceil(x),ceil(y)));
Wx1=1-(x-floor(x));
Wx2=x-floor(x);
Wy1=1-(y-floor(y));
Wy2=y-floor(y);
X(i,j)=[Wx1 Wx2]*[x11 x12;x21 x22]*[Wy1;Wy2]; % caulate x(i,j)
end
end
end
end
figure
imshow(X);
数学的什么线都有
你下下看
还有源代码
http://community.csdn.net/Expert/TopicView.asp?id=4661338