Ask Your Question

hierarchical Clustering VS Kmeans Clustering

asked 2013-07-31 01:05:43 -0500

Mostafa Sataki gravatar image

updated 2013-07-31 06:42:10 -0500

StevenPuttemans gravatar image

What is difference between hierarchical Clustering & Kmeans clustering?What is advantage of hierarchical Clustering to Kmeans clustering?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-07-31 02:41:41 -0500

red_sonya gravatar image

updated 2013-07-31 02:53:28 -0500

Siegfried gravatar image

That is not bad the explanation of the differences between hierarchical and k-means clustering(page 46): And there is an rational thought about the using of hierarchical k-means (top-down hierarchical clustering using k-means iteratively) there. The advantage of one or the other method depends of the task's conditions.

edit flag offensive delete link more


One of the differences between these two algorithms is number of center.In the Kmeans have to determine K param but in hierarchical clustering does not require specify K param & algorithm determines K param.Why in the opencv hierarchical Clustering have to send center Mat?

Mostafa Sataki gravatar imageMostafa Sataki ( 2013-07-31 03:29:40 -0500 )edit

If you mean flann::hierarchicalClustering in OpenCV it is a hierarchical k-means tree. You need to create a matrix for centers. The centers.rows will be the upper limit of clusters which you need. This matrix will contain the obtained centers of clusters.

red_sonya gravatar imagered_sonya ( 2013-07-31 05:03:20 -0500 )edit
Login/Signup to Answer

Question Tools


Asked: 2013-07-31 01:05:43 -0500

Seen: 5,298 times

Last updated: Jul 31 '13