image = | kernelKMeansAssignImg (inImg,inKKMeansCentroids) |
assignment part of Kernel based KMeans clustering algorithm
This algorithm used results from a Kernel K-means algorithm (Kernel K-means algorithm) to classify some new data. This can be seen as the second part of a classical training/assignment clustering process.
Given an input sequence image of size {x, y, z, c, t}, with c the number of color channels and t the number of elements in temporal sequence, the algorithm will assign a cluster index to each pixels of the output classes image
. Assignments are computed with respect to input Kernel centroids parameter
.
Here is an example of Kernel K-means assignment process where the left part of an input image is used as 'training data' generating centroids coordinates and the right part is then assigned to cluster indices using these centroids coordinates :