Effacer les filtres
Effacer les filtres

??? Undefined function or variable 'im' . how to solve this error?

1 vue (au cours des 30 derniers jours)
Sreepriya Jeejesh
Sreepriya Jeejesh le 6 Juin 2018
Commenté : KSSV le 6 Juin 2018
when i enter the following code "undefined function or variable 'im'.
%im=input image to be clustered
%lb=clustered image/labeled image
if size(im,3)>1
[lb,center] = ColorClustering(im);
else
[lb,center] = GrayClustering(im);
end

Réponses (1)

Shrestha Kumar
Shrestha Kumar le 6 Juin 2018
Modifié(e) : Shrestha Kumar le 6 Juin 2018
Hi,
You get this error because you have commented the definition of variable im in the first line. Uncomment it and then provide right value to the variable.Also uncomment the definition of lb variable(second line).
  1 commentaire
KSSV
KSSV le 6 Juin 2018
YOu have to use imread to read the image....have a look on imread.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox 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