Why am I receiving this error message about k means ?
1 次查看(过去 30 天)
显示 更早的评论
Error using kmeans
Too many input arguments.
Error in kmeans_grayscale_segmentation (line 53)
[clusterIndexes, clusterCenters] = kmeans(grayLevels, numberOfClusters,...
Any help is appreciated
3 个评论
Scott MacKenzie
2021-6-22
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
2021-6-23
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!