File Exchange

image thumbnail

Bag of Visual Words

version 1.0.0.2 (21.1 KB) by Mahmoud Afifi
Matlab (GUI) implementation for Bag of Visual words.

18 Downloads

Updated 04 Jan 2019

View License

Matlab (GUI) implementation for Bag of Visual words.

This implementation is based on Matlab functions and Vlfeat lib.
The number of visual words=200, to change it:
from line 87 in bovw_sift.m
from line 76 in bovw_surf.m
Download the VLFeat binary package (version 0.9.20) from the following link:
http://www.vlfeat.org/download.html
Extract vlfeat-0.9.20-bin in the root of the BoVW directory.

Add the following line in vlfeat-0.9.20-bin\vlfeat-0.9.20\toolbox\vl_setup.m:
addpath(fullfile(root,'apps','recognition'));

1- Run BoVW.m
2- Choose the number of classes
3- Browse image folders (folder for each class)
4- Choose descriptor (SIFT or SURF)
5- Train (5-fold validation)
6- Test using new images

Cite As

Mahmoud Afifi (2019). Bag of Visual Words (https://www.mathworks.com/matlabcentral/fileexchange/62232-bag-of-visual-words), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

@Ponnusamy R: please read the comment below or the readme file.

Ponnusamy R

What’s the solution for undefined function getSIFT

@sahar javid @Isha Potnis

This implementation is based on Matlab functions and Vlfeat lib.
Number of visual words=200, to change it:
from line 87 in bovw_sift.m
from line 76 in bovw_surf.m
Download the VLFeat binary package (version 0.9.20) from the following link:
http://www.vlfeat.org/download.html
Extract vlfeat-0.9.20-bin in the root of the BoVW directory.

Add the following line in vlfeat-0.9.20-bin\vlfeat-0.9.20\toolbox\vl_setup.m:
addpath(fullfile(root,'apps','recognition'));

1- Run BoVW.m
2- Choose number of classes
3- Browse image folders (folder for each class)
4- Choose descriptor (SIFT or SURF)
5- Train (5-fold validation)
6- Test using new images

sahar javid

hello,is there any solution for this ERROR 'Undefined function 'getSIFT' for input arguments of type 'single''?

Isha Potnis

Undefined function 'getSIFT' for input arguments of type 'single' ERROR still persists. What is the solution for this?

@Roxana can you send me your code to check?

Can you tell me if getSIFT should be a custom function written by me?

Undefined function 'getSIFT' for input arguments of type 'single'.

Updates

1.0.0.2

.

1.0.0.1

description update

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor