Kmeans vs imsegkmeans, what the difference?

19 ビュー (過去 30 日間)
udi ibgui
udi ibgui 2020 年 1 月 8 日
コメント済み: Adam 2020 年 1 月 13 日
Hi, Im currently working on image segmentation and was wondering what the difference bewtween the two functions is?
  1 件のコメント
Adam
Adam 2020 年 1 月 13 日
I imagine they use the same code under the hood, though each is only available in a specific toolbox and imsegkmeans looks like it is just a helpful wrapper function that does some of the work for you, mostly in terms of repeatability, judging from the top at the bottom. By default kmeans uses randomness in initialisation which means it will give different results each time, whereas imsegkmeans apparently does not do this and returns repeatable results each time. You can parameterise kmeans to do this also, it just isn't the default behaviour.

サインインしてコメントする。

採用された回答

Ganesh Regoti
Ganesh Regoti 2020 年 1 月 13 日
As per my understanding, there is not much difference in the underlying functionality of both kmeans and imsegkmeans as both does clustering of data.
imsegkmeans clusters the image based on the color of each pixel of that image.
kmeans clusters the data into given number of clusters. You can replicate the functionality of imsegkmeans with kmeans with some pre-processing.
You can refer following links to understand more about them

その他の回答 (0 件)

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by