I am getting error in edge function like "Attempt to execute SCRIPT edge as a function:" b=edge(img​,'canny',0​.40); Can someone solve this error?

4 次查看(过去 30 天)
a=imread('D:\canal images\df.jpg'); imshow(a); title('Original');
img=rgb2gray(a); imshow(img); title('Grayscale');
b=edge(img,'canny',0.40); figure,imshow(b); title('canny');

回答(1 个)

Jan
Jan 2017-12-12
This error occurs, if the parent folder of edge.m is the current folder. Try this:
cd(tempdir)
and run the code again. Does it help? If so, remember that it can have strange side-effects, if one of the toolbox folders is the current directory.
  4 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by