%ex2_6.m %读取图像文件 I=imread('gantrycrane.png'); %显示图像 imshow(I); %写回到文件 imwrite(I,'gantrycrane.tif','TIFF');