Borrar filtros
Borrar filtros

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 visualizaciones (últimos 30 días)
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');

Respuestas (1)

Jan
Jan el 12 de Dic. de 2017
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 comentarios
Jainee Solanki
Jainee Solanki el 4 de En. de 2018
I m still getting this script error.Can you tell me from beginning how to solve it?

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by