?? im_resize.m
字號:
function newimg = im_resize(img,nw,nh)%IM_RESIZE Resize an image using bicubic interpolation%% NEWIMG = IM_RESIZE(IMG,NW,NH) Given input image IMG,% returns a new image NEWIMG of size NWxNH.% Matthew Dailey 2000 if nargin ~= 3 error('usage: im_resize(image,new_wid,new_ht)'); end; ht_scale = size(img,1) / nh; wid_scale = size(img,2) / nw; newimg = interp2(img,(1:nw)*wid_scale,(1:nh)'*ht_scale,'cubic');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -