马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
I=imread('1.jpg');
J=imnoise(I,'salt & pepper',0.02);
K=medfilt2(J);
imshow(J), imshow(K)
1.jpg是一张图片;
运行上面的程序,就出现以下错误:
??? Error using ==> images\private\checkinput>check_attributes
Function ORDFILT2 expected its first input argument, A,
to be two-dimensional.
Error in ==> images\private\checkinput at 37
check_attributes(A, attributes, function_name, variable_name, ...
Error in ==> ordfilt2>ParseInputs at 135
checkinput(A, {'numeric','logical'}, {'2d','real'}, mfilename, 'A', 1);
Error in ==> ordfilt2 at 51
[A,order,domain,s,padopt,msg] = ParseInputs(varargin{:});
Error in ==> medfilt2 at 53
b = ordfilt2(a, order, domain, padopt);
Error in ==> x at 3
K=medfilt2(J);
请问各位高手,是什么问题?
|