How do I create a frequency histogram?
I have some images of flowers that I have extracted SIFT features from and I clustered the features using K-Means(k=3). I would like to create a "histogram of cluster membership identifiers" to feed to an SVM classifier as described in the accepted answer to the question below.
http://stackoverflow.com/questions/5703013/large-scale-image-classifier
My question is, how do I create this histogram in Java? Can I use Calchist?
I have a Mat of labels where each element is a cluster index (0...2) for each key point in an image.