Reputation: 1
MATLAB K-means gives accurate results for an image, whereas k-means with OpenCV c++ does not give the same result, even though parameters are same. Is there any difference in implementation?
Upvotes: 0
Views: 191
Reputation: 1322
Matlab's kmeans
function uses kmeans++ by default, and kmeans++ can be activated in cv::kmeans through the KMEANS_PP_CENTERS
flag.
Upvotes: 1