-
Notifications
You must be signed in to change notification settings - Fork 32
/
evaluating_existing_methods.m
52 lines (48 loc) · 2.04 KB
/
evaluating_existing_methods.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
% clc;
clear;
warning off;
addpath('support_methods/');
addpath(genpath('tools'));
testDatabase = {'ChallengeDB_release'}; % LIVE CSIQ TID2013 ChallengeDB_release
testMethod = {'NIQE'}; % BRISQUE, DIIVINE, FRIQUEE, CORNIA, NIQE, ILNIQE, HOSA
trainingPropertion = 0.8;
repetitions = 10;
for j = 1:numel(testMethod)
addpath(genpath(fullfile('support_methods',testMethod{j})));
if strcmp(testMethod{j},'NIQE') || strcmp(testMethod{j},'ILNIQE')
for i = 1:numel(testDatabase)
switch testDatabase{i}
case 'LIVE'
test_LIVE([],testDatabase{i},testMethod{j}, trainingPropertion);
case 'TID2013'
test_TID2013([],testDatabase{i},testMethod{j}, trainingPropertion);
case 'CSIQ'
test_CSIQ([],testDatabase{i},testMethod{j}, trainingPropertion);
case 'ChallengeDB_release'
test_ChallengeDB([],testDatabase{i},testMethod{j}, trainingPropertion);
case 'LIVE_MD'
test_LIVE_MD([],testDatabase{i},testMethod{j}, trainingPropertion);
otherwise
error('Unknown database!');
end
end
else
for i = 1:numel(testDatabase)
switch testDatabase{i}
case 'LIVE'
test_LIVE_SVR(testDatabase{i},testMethod{j}, trainingPropertion);
case 'TID2013'
test_TID2013_SVR(testDatabase{i},testMethod{j}, trainingPropertion);
case 'CSIQ'
test_CSIQ_SVR(testDatabase{i},testMethod{j}, trainingPropertion);
case 'ChallengeDB_release'
test_ChallengeDB_SVR(testDatabase{i},testMethod{j}, trainingPropertion);
case 'LIVE_MD'
test_LIVE_MD_SVR(testDatabase{i},testMethod{j}, trainingPropertion);
otherwise
error('Unknown database!');
end
end
end
rmpath(genpath(fullfile('support_methods',testMethod{j})));
end