Visualize visual words in bag of words model I am implementing visual bag of words through these steps:


Find interest points using SIFT
Calculate SIFT descriptor
Build codebook through kmeans clustering of SIFT descriptors.


How can I visualize these visual words? For example in the following lecture, how do they get those patches?
Each SIFT descriptor corresponds to a region of the image. You take these from a bunch of images and group them into some number of clusters. I think what he's showing in the slide there is just a few samples from each cluster where he chose human-meaningful names for the clusters after the fact.