Clear;lena=imread (' a1.bmp '); three lines below specify a zoom multiplier of 0.5, that is 0.5 times times the length and width of the original image,% using three interpolation methods, that is, nearest neighbor interpolation (default), bilinear interpolation, double three times interpolation lena0_5_1= Imresize (lena,0.5);%lena0_5_2=imresize (lena,0.5, ' bilinear '); Lena0_5_3=imresize (lena,0.5, ' bicubic ');% The following three lines specify a zoom multiplier of 2, which is twice times the length and width of the original image, using three interpolation methods, i.e. nearest neighbor interpolation (default), bilinear interpolation, double three interpolation lena2_1=imresize (lena,2), Lena2_2=imresize (lena,2, ' bilinear '); Lena2_3=imresize (lena,2, ' bicubic '); The following line is another example of a given zoom factor, that is, the number of rows and columns of the scaled image lena2_1_0=imresize (lena,[ Imshow (LENA2_1_0);
[Usage of the Matlba]imresize function