www.gusucode.com > 《matlab图像处理与界面编程宝典》秦襄培 编著,每章的MATLAB源代码程序 > 第11章/代码11-5.txt
I = imread('cameraman.tif'); % 读入图像 [X, map] = gray2ind(I, 16); % 转换为索引图像 imshow(X, map); % 显示索引图像