I=imread('2.jpg');
BW=dither(I);% 调用dither()函数进行图像转化。
figure
imshow(I);
figure
imshow(BW);
本程序摘自《MATLAB仿真及其在光学课程中的应用》一书第五章
I=imread('2.jpg');
BW=dither(I);% 调用dither()函数进行图像转化。
figure
imshow(I);
figure
imshow(BW);
本程序摘自《MATLAB仿真及其在光学课程中的应用》一书第五章