K1=filter2(fspecial('average',3),R)/255; %模板尺寸为3
K2=filter2(fspecial('average',5),R)/255;% 模板尺寸为5
subplot(2,2,3);imshow(K1);
title('改进后的图像1');
subplot(2,2,4); imshow(K2);
title('改进后的图像2');
本来想这么做,但是这个函数只能用于二维数据的图片……然后我就捉急了、
未定义与 'double' 类型且具有 'full 3d real' 属性的输入参数相对应的函数 'conv2'。
出错 filter2 (line 59)
y = conv2(hcol, hrow, x, shape);
K2=filter2(fspecial('average',5),R)/255;% 模板尺寸为5
subplot(2,2,3);imshow(K1);
title('改进后的图像1');
subplot(2,2,4); imshow(K2);
title('改进后的图像2');
本来想这么做,但是这个函数只能用于二维数据的图片……然后我就捉急了、
未定义与 'double' 类型且具有 'full 3d real' 属性的输入参数相对应的函数 'conv2'。
出错 filter2 (line 59)
y = conv2(hcol, hrow, x, shape);