forked from msavva/ReVision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetOpt.m
53 lines (49 loc) · 1.73 KB
/
setOpt.m
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
%% Global Parameters
% Set the below directory to the root of the image corpus with
% subdirectories for each image category (see below)
%IMAGES_ROOT = '../../corpus/';
IMAGES_ROOT = '~/data/cleanedZachClassData/63KTRAINVAL/train/';
% Download the VLFeat library binaries: http://www.vlfeat.org/download.html
% then extract and set VLFEATROOT to point to extracted location
VLFEAT_ROOT = '../vlfeat-0.9.19';
%% Load VL_FEAT
run(strcat(VLFEAT_ROOT, '/toolbox/vl_setup'));
%% Configuration
opt.rfSize = 6;
opt.Npatches = 50000;
opt.Ncentroids = 200;
opt.kmeansIterations = 50;
opt.whitening = true;
opt.Ntrain = 1;
opt.Ntest = 1;
opt.DIM=[128 128 1];
opt.randomizeImageOrder = false;
opt.preserveAR = true;
opt.binaryClassification = false;
opt.useTextFeatures = false;
opt.filterTextRegions = false;
opt.subdivisionLevels = 1;
opt.addIs3Dtag = false;
opt.baseDir = IMAGES_ROOT;
opt.catDirs = arrayfun(@num2str, 0:6, 'UniformOutput', false);
%opt.catDirs = {'bar', 'bar3D','lines', 'lines3D', 'pie', 'pie3D', 'scatter','scatter3D', 'surface3D'};
% opt.catDirs = {'bar','lines','pie', 'scatter'};
% opt.catDirs = {'bar','pie'};
% opt.baseDir = 'C:\code\VisInterp\imagesNew\';
% opt.catDirs = {
% 'AreaGraph\', ... %1
% 'BarGraph\', ... %2
% 'BoxPlot\', ... %3
% 'ColumnGraph\', ... %4
% 'FlowChart\', ... %5
% 'LineGraph\', ... %6
% 'Map\', ... %7
% 'NetworkDiagram\', ... %8
% 'ParetoChart\', ... %9
% 'PieChart\', ... %10
% 'RadarPlot\', ... %11
% 'ScatterGraph\', ... %12
% 'Table\', ... %13
% 'TreeDiagram\', ... %14
% 'VennDiagram\'}; %15
% opt.catDirs = strcat(opt.catDirs,'jpg');