What is bag of features in Matlab?
bag = bagOfFeatures( imds ) returns a bag of features object. The bag output object is generated using samples from the imds input. By default, the visual vocabulary is created from SURF features extracted from images in imds .
Which phase in bag of features framework generates visual words?
After finding the optimum keypoints from the new GKS method, the codebook construction phase of BOF (as described in “Bag-of-features method” section) is performed which uses K-means clustering to generate various visual words.