xq6221
2008-10-21, 10:23
最近刚开始学习Matlab 根据例题以及程序自带的图片进行处理时没有任何问题。但是使用我自己的图片时,就会出现很多问题(首先我和例题给的格式是一样的):
I=imread('w.tif');
J=uint8(filter2(fspecial('gaussian'),I));
??? Function 'conv2' is not defined for values of class 'double' and attributes 'full 3d real'.
Error in ==> filter2 at 73
y = conv2(hcol, hrow, x, shape);
是不是由于我使用的图片的数据是Double类型的 不能符合 filter2 的函数 如何进行修改?谢谢了
I=imread('w.tif');
J=uint8(filter2(fspecial('gaussian'),I));
??? Function 'conv2' is not defined for values of class 'double' and attributes 'full 3d real'.
Error in ==> filter2 at 73
y = conv2(hcol, hrow, x, shape);
是不是由于我使用的图片的数据是Double类型的 不能符合 filter2 的函数 如何进行修改?谢谢了