运行matlab软件时出Attempt to execute SCRIPT hough as a function.错误
运行hough时出现Attempt to execute SCRIPT hough as a function.提示的错误,哪位高手给解答一下是怎么回事。具体的程序如下:
I1=imread('jing.bmp');
I=rgb2gray(I1);
BW=edge(I,'canny');
[H,T,R]=hough(BW);
imshow(H,[],'XData',T,'YData',R,'InitialMagnification','fit');
axis normal,hold on;
去了[],还是不行,出现同样的提示,我用help提供的hough函数的举例,运行后也是这种情况,到底是怎么回事啊,大家帮忙想想,答对了加分啊
我来告诉楼主吧,matlab函数中根本没有hough这个函数,hough变换是要自己编
的。。。。
看我help hough的结果
hough.m not found.
Use the Help browser Search tab to search the documentation, or
type "help help" for help command options, such as help for methods.
楼主如果需要hough变换的代码可以找我。。
温馨提示:内容为网友见解,仅供参考
第1个回答 2009-04-14
imshow(H,[],'XData',T,'YData',R,'InitialMagnification','fit');
[] 这个去了就好
Warning: Invalid argument supplied for foreach() in /www/wwwroot/aolonic.com/skin/templets/default/contents.html on line 45
相似回答