-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.m
38 lines (31 loc) · 1.3 KB
/
test.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
%% Input Data
opts.imDistance = 0.5;
opts.MRFalg = 1;
i = 0;
for lambda = 0:50:150
for nD = 128:32:256
for smoothmax = 256:-32:32
%%
i = i + 1;
opts.smoothmax = smoothmax;
opts.lambda = lambda;
opts.nD = nD;
opts.scale = 256/opts.nD;
%%
input.Folder = ('../video/frame/');
input.Lfile = ('cam10_050.png');
input.Rfile = ('cam08_050.png');
output(i).Folder = ('./output/');
output(i).Lfile = sprintf('disp/test_dispL_050_%d_%d_%d.png',lambda,nD,smoothmax);
output(i).Rfile = sprintf('disp/test_dispR_050_%d_%d_%d.png',lambda,nD,smoothmax);
output(i).syntLfile = sprintf('synt/test_syntL_050_%d_%d_%d.png',lambda,nD,smoothmax);
output(i).syntRfile = sprintf('synt/test_syntR_050_%d_%d_%d.png',lambda,nD,smoothmax);
output(i).File = sprintf('teset_synt_%03d.png',i);
tmp.Folder = './tmp/';
tmp.dispRflipFile = ('dispRflip_050.png');
tmp.LflipFile = ('Lflip_050.png');
tmp.RflipFile = ('Rflip_050.png');
synthesis(input,output(i),tmp,opts)
end
end
end