Code covered by the BSD License  

Highlights from
compute bag of visual word representation for an image


4.5 | 3 ratings Rate this file 192 Downloads (last 30 days) File Size: 6.31 KB File ID: #43631

compute bag of visual word representation for an image



25 Sep 2013 (Updated )

computes BOV/BOF/BOW representation for an image. Codebook and image features are user inputs.

| Watch this File

File Information

If you have the codebook with you, you can represent an image as a bag of (visual) words, using this function. This gives the histogram of the codebook entries (called codewords), in the extracted features of th eimage. You need to pass the extracted features from the image also as input to the function. This function can work with any type of features. One important note is, you MUST have a working version of 'yael' library of INRIA on your machine. The output histogram can be normalized (third argument).

MATLAB release MATLAB 7.11 (R2010b)
MATLAB Search Path
Other requirements yael library from INRIA
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
03 Sep 2014 sapna sapna

i want to use sift features for human action recognition. i have multiple human in a single frame.SIFT extracted from each frame is kx128 to create bag of visual words from these features??

02 Jun 2014 Konda Reddy Mopuri

@Lakshmi: I don't know why you get a 2D matrix as SIFT feature, in general it should be a single 128D vector at each keypoint. But, even if you get a 2D matrix as your feature, you may go ahead after column stacking it.

26 May 2014 Lakshmi

I want to generate BoVW from sift feature. I'm getting a 2d matrix as SIFT feature. Should i convert it into 1d for giving it as input to the BoVW?

24 Feb 2014 hamed abdulaziz

Konda: Thanks very good code,could you make a test example for use it as demo (for image features extraction) where my master project on it ,and thanks in advance.

21 Jan 2014 Konda Reddy Mopuri

@hameed: BoW representation is widely used along with many of its improved variants for classification, retrieval kind of applications. You may get some overview here
thank you !!

13 Jan 2014 hamed abdulaziz

Konda: thanks very good code,I am wondering how can I use your code for medical images classification like skin cancer(i.e. Melanoma),how can I do that?

03 Jan 2014 Konda Reddy Mopuri

Hi, you said that you obtained the Vwords as the output of kmeans algorithms, actually what is the input data given to the kmeans for clustering ?? that itself is the features. For example it can be the SIFT features extracted from an image.

03 Jan 2014 Konda Reddy Mopuri

@hamed: Welcome !!

02 Jan 2014 asmae

dear CONDA,
how to get 'feats' from the images 'jpg' <901x1201x3 uint8>? for Vwords I took the centroids <49x50 Double> obtained by Kmeans algorithm.

17 Dec 2013 hamed abdulaziz

Thanks very good code

31 Oct 2014

1. Provison soft assignment
2. Codebook learning via K-means are added

Contact us