Fixed 'prior_kmeans' to work with 1 channel.