MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]图像处理 (https://www.labfans.com/bbs/showthread.php?t=4933)

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 的函数 如何进行修改?谢谢了

feiyang_zc 2008-11-09 22:44

回复: [求助]图像处理
 
是滤波的 数据格式 不是 double型的。要把你输入的数据转成double型的。你输入的图形是不是 彩色的?


所有时间均为北京时间。现在的时间是 05:15

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.