⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 im_resize.m

📁 人脸识别matlab程序 with a principal components analysis for a set of face images as the theme
💻 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 + -