[matlab]修改图片尺寸并保存

img = imread('test3.jpg');
i = imresize(img,[96,128]);
imwrite(i,'vehicle.jpg');


1、imresize改变图片尺寸

B = imresize(A,scale)
B = imresize(A,[numrows numcols])
[Y,newmap] = imresize(X,map,___)
___ = imresize(___,method)
___ = imresize(___,Name,Value)



2、imwrite保存图片

imwrite(A,filename)
imwrite(A,map,filename)
imwrite(___,fmt)
imwrite(___,Name,Value)

你可能感兴趣的:([matlab]修改图片尺寸并保存)