필터 지우기
필터 지우기

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
Jainee Solanki
Jainee Solanki 2018년 1월 4일
I m still getting this script error.Can you tell me from beginning how to solve it?

댓글을 달려면 로그인하십시오.

카테고리

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