-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBruteForceRun.m
More file actions
25 lines (24 loc) · 815 Bytes
/
BruteForceRun.m
File metadata and controls
25 lines (24 loc) · 815 Bytes
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
name = 'ice.yuv';
hor_psnrs = [];
ver_psnrs = [];
alt_psnrs = [];
itrs = [];
shitfs_arr = [];
qbs = [];
for itr = 1:1:1
for shifts = 1:1:2
for starting_qb = 20:1:21
fprintf('itr = %d, shitfs = %d, qb = %d\n',itr,shifts,starting_qb);
[hor_psnr, ver_psnr, alt_psnr ] = run_all_versions('Videos',name, 704, 576, 480, 352, 288, shifts, itr, starting_qb, 0);
hor_psnrs = [hor_psnrs;hor_psnr];
ver_psnrs = [ver_psnrs;ver_psnr];
alt_psnrs = [alt_psnrs;alt_psnr];
itrs = [itrs;itr];
shitfs_arr = [shitfs_arr;shifts];
qbs = [qbs;starting_qb];
end
end
end
filename = sprintf('psnrs\\AllRuns-%s.mat',name);
save(filename,'hor_psnrs','ver_psnrs','alt_psnrs','itrs','shitfs_arr','qbs');
disp('congrates, we are done!');