-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuserdata.m
More file actions
40 lines (31 loc) · 1.48 KB
/
userdata.m
File metadata and controls
40 lines (31 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% USERDATA User data for BOW_PIPELINE
% Edit this script to enter the information you need for BOW_PIPELINE.
%
% * Specify paths for the 3rd party libraries
%
%
% Copyright 2014 Jose Rivera @ BICV group Imperial College London.
%% PATHS
libPath = './lib'; % Lib path (3rd party libraries and code)
utilsPath = './utils'; % Utils path (utils code)
datasetDir = '../dataset/data'; % Dataset path
dictDir = '../dataset/dict'; % Dictionary path
lp = genpath(libPath);
addpath(lp,utilsPath);
% Library initialisation (required for VLFeat)
vl_setup;
% Parameters
params = struct(...
'feat', 'dsift',... % Feature type: 'dsift', 'sift'
'maxImageSize', 300,...
'gridSpacing', 2,...
'binSize', 4,... % Correspond to patchsize = 4*binSize (assuming SIFT and 4x4 bin descriptor)
'dictionarySize', 400,... % Number of visual words
'numTrainImages', 30,... % # Training images
'numTestImages', 40,... % # Test images, -1 for all - training
'kmeans', struct(...
'maxIter', 30,... % Max # k-means iterations
'maxNumFeats', 100000,... % Max number of descriptors to be used
'normHist', 1),... % 1 to normalise histograms, 0 otherwise
'pyramidLevels', 3,... % Number of spatial pyramid levels
'encodingMethod', 'HA'); % Encoding methods 'HA', 'llc'...