MATLAB: draw centroids

Posted by Myx on Stack Overflow See other posts from Stack Overflow or by Myx
Published on 2010-04-15T23:29:54Z Indexed on 2010/04/15 23:33 UTC
Read the original article Hit count: 257

Filed under:
|

Hello - my main question is given a feature centroid, how can I draw it in MATLAB?

In more detail, I have an NxNx3 image (an rgb image) of which I take 4x4 blocks and compute a 6-dimensional feature vector for each block. I store these feature vectors in an Mx6 matrix on which I run kmeans function and obtain the centroids in a kx6 matrix, where k is the number of clusters and 6 is the number of features for each block. How can I draw these center clusters in my image in order to visualize if the algorithm is performing the way I wish it to perform? Or if anyone has any other way/suggestions on how I can visualize the centroids on my image, I'd greatly appreciate it.

Thank you.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about data-visualization