>> I=imread('moon.tif'); >> X=grayslice(I,64); >> figure(1); >> imshow(I); Warning: Image is too big to fit on screen; displaying at 75% scale. > In truesize>Resize1 at 308 In truesize at 44 In imshow at 161 >> title('原始图像'); >> figure(2); >> imshow(X,jet(64)); Warning: Image is too big to fit on screen; displaying at 75% scale. > In truesize>Resize1 at 308 In truesize at 44 In imshow at 161 >> title('索引图像');