What is the difference between Matlab built-in 'kmeans' and the k-means method behind imsegkmeans?
1 view (last 30 days)
Show older comments
May I acces the code/method inside imsegkmeans?
I've seen it goes to: "[Label,NormCen] = images.internal.ocvkmeans(X,k,NumAttempts,MaxIterations,Threshold);" at line 37 of images.internal.algkmeans() function but I can't go deeper and enter ocvkmeans.
What is the difference between Matlab built-in kmeans function (which uses a Matlab accessible implementation) and this ocvkmeans ?
Thanks,
1 Comment
John D'Errico
on 2 Mar 2021
Edited: John D'Errico
on 2 Mar 2021
Note that MATLAB does not have a built-in kmeans. There is a kmeans utility in the stats toolbox however.
But asking what is in compiled code is not possible to know, since unless you work for the MathWorks, you cannot see the code.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!