I am getting this warning message while executing the k means cluster algorithm ?

3 ビュー (過去 30 日間)
MINO GEORGE
MINO GEORGE 2021 年 6 月 18 日
コメント済み: MINO GEORGE 2021 年 6 月 18 日
Warning: Failed to converge in 100 iterations.
> In kmeans/loopBody (line 479)
In internal.stats.parallel.smartForReduce (line 136)
In kmeans (line 343)
In sav (line 27)
  3 件のコメント
Image Analyst
Image Analyst 2021 年 6 月 18 日
You forgot to attach your data. I'll check back later for it.
MINO GEORGE
MINO GEORGE 2021 年 6 月 18 日
The coding for k means algorithm is here
numberOfClusters = 7;
grayLevels = double(g(:));
[clusterIndexes, clusterCenters] = kmeans(grayLevels, numberOfClusters,...
'distance', 'sqEuclidean', ...
'Replicates', 2);
labeledImage = reshape(clusterIndexes, rows, columns);

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

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by