|
a |
|
b/params/paramsPCATuning.m |
|
|
1 |
|
|
|
2 |
%------------------------------ |
|
|
3 |
%General parameters |
|
|
4 |
%%%%%% QUI %%%%%% |
|
|
5 |
param.numIterations = 10; %number of re-iterations. |
|
|
6 |
% param.kfold = 10; %k-1 partition used for training; 1 partitions for testing |
|
|
7 |
param.kfold = 2; %k-1 partition used for training; 1 partitions for testing |
|
|
8 |
%knn parameters |
|
|
9 |
param.knn_neighbors = 1; |
|
|
10 |
param.matchDistance = 'euclidean'; |
|
|
11 |
param.knnDistance = 'euclidean'; |
|
|
12 |
%param.matchDistance = 'chisq'; |
|
|
13 |
%param.knnDistance = 'chisq'; |
|
|
14 |
param.numScoreAggregate = 4; %4 usato in paper recenti |
|
|
15 |
param.useDynamicNumFilters = 1; % 0 1 |
|
|
16 |
param.RetainedVariance = [0.92]; %[0.93 0.95] |
|
|
17 |
|
|
|
18 |
%------------------------------ |
|
|
19 |
%Parameters orientation search |
|
|
20 |
param.numBins = 45; |
|
|
21 |
param.divTheta = 10; %orientamenti campionati |
|
|
22 |
param.maxOrient = 10; %12 %orientamenti adattativi |
|
|
23 |
|
|
|
24 |
%------------------------------ |
|
|
25 |
%Parameters Gabor from scales |
|
|
26 |
param.N = 1; %sampling points per octave |
|
|
27 |
param.b0 = 1; %the unit spatial interval |
|
|
28 |
param.phai = 1.5; %band width of gabor [octave] |
|
|
29 |
param.aspectRatio = 1; %aspect ratio of the gabor filter |
|
|
30 |
|
|
|
31 |
%------------------------------ |
|
|
32 |
%Parameters Gabor parametrized |
|
|
33 |
param.divThetaParametrized = param.divTheta; |
|
|
34 |
param.sigma = 5.6179; %used for generating Gabor filter |
|
|
35 |
param.wavelength = 0.11; %used for generating Gabor filter |
|
|
36 |
|
|
|
37 |
%------------------------------ |
|
|
38 |
%Parameters wavelet add |
|
|
39 |
param.numWavelets = 10000; |
|
|
40 |
param.minMSE = 0.005; |
|
|
41 |
param.minCountW = 2000; |
|
|
42 |
param.numBestWavelets = 5; |
|
|
43 |
|
|
|
44 |
%------------------------------ |
|
|
45 |
% %PCANet parameters |
|
|
46 |
% PCANet.Vf = 15; |
|
|
47 |
% PCANet.NumStages = 2; %2 |
|
|
48 |
% PCANet.PatchSize = [15, 15]; %(default [5 5]) ([15 15] seems good for iitd) |
|
|
49 |
% PCANet.NumFilters = [PCANet.Vf, (param.divThetaParametrized + param.numBestWavelets)]; % (default [8 8]) ([10 10] seems good for iitd) |
|
|
50 |
% PCANet.HistBlockSize = [23, 23]; %(default 15 15) ([23 23] seems good for iitd) |
|
|
51 |
% PCANet.BlkOverLapRatio = 0; |
|
|
52 |
% PCANet.Pyramid = []; |
|
|
53 |
|
|
|
54 |
%------------------------------ |
|
|
55 |
%original PCANet parameters |
|
|
56 |
PCANet.Vf = 11; |
|
|
57 |
PCANet.NumStages = 1; %2 |
|
|
58 |
PCANet.PatchSize = [15, 15]; %(default [5 5]) ([15 15] seems good for iitd) |
|
|
59 |
% PCANet.NumFilters = [PCANet.Vf PCANet.Vf]; % (default [8 8]) ([10 10] seems good for iitd) |
|
|
60 |
PCANet.NumFilters = [PCANet.Vf]; % (default [8 8]) ([10 10] seems good for iitd) |
|
|
61 |
PCANet.HistBlockSize = [23, 23]; %(default 15 15) ([23 23] seems good for iitd) |
|
|
62 |
PCANet.BlkOverLapRatio = 0; |
|
|
63 |
PCANet.Pyramid = []; |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|