MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 请教Matlab关于hough.m的问题,为什么有报错?请教Matlab关于hough.m的问题,为什么有报错? (https://www.labfans.com/bbs/showthread.php?t=8588)

sallay 2009-05-24 17:27

请教Matlab关于hough.m的问题,为什么有报错?请教Matlab关于hough.m的问题,为什么有报错?
 
1 个附件
我在Matlab2007和2008中想执行hough transform,我按照例子的代码,

>> RGB = imread('coins.png');
>> I = rgb2gray(RGB); % convert to intensity
>> BW = edge(I,'canny'); % extract edges
>> [H,T,R] = hough(BW,'RhoResolution',0.5,'ThetaResolution',0.5);

但是有如下的报错,

??? Undefined function or method 'houghmex' for input arguments of type 'double'.
Error in ==> hough at 83
h = houghmex(bw,rho,theta*pi/180);

2007和2008都是相同的问题,代码是按照help的例子,实在是想不通啊!
有没有高人能指点一下,先谢谢了!


所有时间均为北京时间。现在的时间是 12:49

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