如何将512 * 512图像转换为256 * 256?

时间:2016-05-16 20:47:20

标签: image matlab image-processing

我尝试使用以下命令转换图像:

%Image Original
imagefilename='cameraman_gray_512.tif';
I=im2double(imread(imagefilename));
%Resize the Image
J = imresize(I, 0.5);
imshow(J)
%Save the Image
imwrite(J,'cameraman_gray_256.tif','tif' )

我以256 * 256格式下载Lena图像看起来很棒。但我不喜欢J图像'质量。 的问候,

0 个答案:

没有答案
相关问题