Hello, I have problem with using edge function. I am trying to find some boundaries in a dicom file but I can not use edge function and canny filter. I have read all the thing in the help of the matlab.
This is the error :
Attempt to execute SCRIPT edge as a function:
D:\Faran\Breast\MRI-Images\NA001\Date_20050101\1\edge.m
Error in test6 (line 18)
bw = edge(a3,'canny');
I do not know what to do. Look forward to your answers. Thanks

 Réponse acceptée

Image Analyst
Image Analyst le 6 Jan 2014
Modifié(e) : Image Analyst le 6 Jan 2014

0 votes

The problem is you called your m-file script "edge.m". Call it something else, since the edge() function is already a built in function and what you are trying to do in your "test6" script is to call your "edge" script (edge.m) and not the built-in edge function. After you rename your m-file to my_edge.m or whatever, it should be fine.

3 commentaires

Faranak
Faranak le 6 Jan 2014
Thanks for your answer, but I don't get what you mean . I do not have any m file as the edge name. I just write this 2 code in command window and I get the same error.
Image Analyst
Image Analyst le 6 Jan 2014
Yes you do. This is it: "D:\Faran\Breast\MRI-Images\NA001\Date_20050101\1\edge.m"
Faranak
Faranak le 6 Jan 2014
yeaaa.I found it :d , Thank you so much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur DICOM Format dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by