clc;clear;close all;
f=imread('gbiaosu.tif');
subplot(1,2,1);
imshow(f);
title('原图');
bw=dither(f);
subplot(1,2,2);
imshow(bw);
title('将灰度图像抖动为二值图像');
很纳闷,为什么老是提示我说是,错误使用 dither>parse_inputs (line 90),DITHER(I): 亮度图像 I 必须为二维数组。
面板只出现了一个图,不是说灰度图像就是二维数组吗?