smfishHmrf.generate.centroid: Generate cluster centroids, where input is given as a matrix.
Description
This function assumes that the input gene expression matrix file has been already loaded into a matrix. The function accepts a matrix and applies kmeans clustering to generate cluster centroids.