-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStartFromHere.m
53 lines (41 loc) · 1.39 KB
/
StartFromHere.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
clear
close all
%% mex-C compilation
mex mexc_ComputeMAX1.cpp
mex mexc_ComputeSUMMAX2.cpp
mex mexc_Histogram.cpp % pool histogram from negative images
mex mexc_LocalNormalize.cpp % local normalization of type single (float)
mex mexc_SharedSketch.cpp % learning by shared sketch algorithm (with data weights)
mex mexc_TemplateAffineTransform.cpp
mex mexc_CropInstanceNew.cpp
mex mexc_ComputeSUMMAX2FixCluster.cpp
%% preparation
ParameterCodeImage;
ExponentialModel; close all
storeExponentialModelName = ['storedExponentialModel' num2str(1)];
load(storeExponentialModelName);
storedlambda = single(storedlambda);
storedExpectation = single(storedExpectation);
storedLogZ = single(storedLogZ);
SUM1MAX1;
Correlation = CorrFilter(allFilter, epsilon); % correlation between filters
for j = 1:numel(Correlation)
Correlation{j} = single(Correlation{j});
end
for j = 1:numel(allSymbol)
allSymbol{j} = single(allSymbol{j});
end
% go over all the rectangles:
for top = 0:rectStep:outerBBsize-rectStep
for left = 0:rectStep:outerBBsize-rectStep
for bottom = top+rectStep:rectStep:outerBBsize
for right = left+rectStep:rectStep:outerBBsize
height = bottom-top;
width = right-left;
templateSize = [height width];
disp(sprintf('\nrect: top=%d left=%d height=%d width=%d',top,left,height,width));
EMClusterPerRect;
end
end
end
end