不好意思,是没有这个函数,应该用imfilter,
??? Function IMFILTER expected its second input, H,
to be one of these types:
double
Instead its type was uint8.
Error in ==> imfilter>parse_inputs at 358
iptcheckinput(h,{'double'},{'nonsparse'},mfilename,'H',2);
Error in ==> imfilter at 127
[a,h,boundary,flags] = parse_inputs(varargin{:});
Error in ==> jzlb at 2
a1=imfilter(fspecial('average',3),c); %3*3均值滤波
我想是double型的,改为
c=double(imread('l.jpg'));
a1=imfilter(fspecial('average',3),c); %3*3均值滤波
imshow(a1);
出现:??? Undefined function or method 'imfilter_mex' for input arguments of type 'int32'.
Error in ==> imfilter at 330
b1 = imfilter_mex(a,im_size,real(h),real(nonzero_h),conn,start,flags);
Error in ==> jzlb at 2
a1=imfilter(fspecial('average',3),c); %3*3均值滤波
还有。。。可以给个程序我吗,就实现均值滤波的,处理的图像最后随便都可以,谢谢 |