I=imread('juzi.png');
map=pink(1024);
X=dither(I,map);% 调用dither()函数进行图像转化。
subplot(2,1,1);
imshow(I);
subplot(2,1,2);
imshow(X,map);
本程序摘自《MATLAB仿真及其在光学课程中的应用》一书第五章
I=imread('juzi.png');
map=pink(1024);
X=dither(I,map);% 调用dither()函数进行图像转化。
subplot(2,1,1);
imshow(I);
subplot(2,1,2);
imshow(X,map);
本程序摘自《MATLAB仿真及其在光学课程中的应用》一书第五章