Why am I receiving this error message about k means ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MINO GEORGE
le 22 Juin 2021
Réponse apportée : Image Analyst
le 23 Juin 2021
Error using kmeans
Too many input arguments.
Error in kmeans_grayscale_segmentation (line 53)
[clusterIndexes, clusterCenters] = kmeans(grayLevels, numberOfClusters,...
Any help is appreciated
3 commentaires
Scott MacKenzie
le 22 Juin 2021
What's the complete line of code here:
[clusterIndexes, clusterCenters] = kmeans(grayLevels, numberOfClusters,...
Obviously, that's where the error is occurring, but unless you provide all the code, or at least all the code where the error occurs, it's hard to say.
Image Analyst
le 23 Juin 2021
It's
'distance', 'sqEuclidean', ...
'Replicates', 2);
Réponse acceptée
Image Analyst
le 23 Juin 2021
My original demo, from which that code comes, is attached. I just ran it and it runs fine. You must have modified (broke) it somehow.
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!