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

6 Ansichten (letzte 30 Tage)
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 Kommentare
Image Analyst
Image Analyst am 18 Jun. 2021
You forgot to attach your data. I'll check back later for it.
MINO GEORGE
MINO GEORGE am 18 Jun. 2021
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);

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by