📄 image_resize.m
字号:
function I=image_resize(filename,S)
%This functions loads the image in the filename and resizes its biggest
%dimension to the size given in S, using the bilinear method.
I=imread(filename);
[imx,imy,imz]=size(I);
if imx>imy
I=imresize(I,S/imx,'bilinear');
else
I=imresize(I,S/imy,'bilinear');
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -