1. If no intial clustering is given, initialize the clusters (i.e., randomly).
Set the iteration counter .
2. For each point and every cluster , compute:
3. Find
Compute the updated cluster
4. If not converged or , set and go to step 2;
Otherwise, stop and output the final clusters
Algorithm 1: Graph partition algorithm (Weighted Kernel -means). This algorithm assigns the voxel to the cluster if the cluster minimizes the distance function from point 2 [7].