フィルターのクリア

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

1 回表示 (過去 30 日間)
Sreepriya Jeejesh
Sreepriya Jeejesh 2018 年 6 月 6 日
コメント済み: KSSV 2018 年 6 月 6 日
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

回答 (1 件)

Shrestha Kumar
Shrestha Kumar 2018 年 6 月 6 日
編集済み: Shrestha Kumar 2018 年 6 月 6 日
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 件のコメント
KSSV
KSSV 2018 年 6 月 6 日
YOu have to use imread to read the image....have a look on imread.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by