What wrong in EDGE in matlab?

9 vues (au cours des 30 derniers jours)
Yao To
Yao To le 27 Sep 2016
Commenté : Steven Lord le 15 Jan 2023
Hi, I have code.
I = imread(filename);
BW = edge(I,'canny');
But I receive error : Undefined function or variable 'edge'. I just try :
BW = edges(I,'canny');
Error : Undefined function 'edges' for input arguments of type 'uint8'. My matlab version : 2015a. I don't know how to fix it. Please help me !

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Sep 2016
edge() is part of the Image Processing Toolbox. You need to have that toolbox licensed and installed in order to use it. (If you have a Student license then you need to go back into the installer and ask for Image Processing to be installed.)
  3 commentaires
munira
munira le 15 Jan 2023
how can I fix this error, do I need to download something? if yes, what iit is?
Steven Lord
Steven Lord le 15 Jan 2023
As Walter said, the edge function is part of Image Processing Toolbox. Check the output of the ver function. If that output does not list "Image Processing Toolbox" you do not have this toolbox installed and will not be able to use this function until or unless you do.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by