|
a |
|
b/launch_CNN_ALL.m |
|
|
1 |
clc |
|
|
2 |
close all |
|
|
3 |
clear variables |
|
|
4 |
fclose('all'); |
|
|
5 |
addpath(genpath('./steps')); |
|
|
6 |
addpath(genpath('./libraries')); |
|
|
7 |
addpath(genpath('./functions')); |
|
|
8 |
addpath(genpath('./util')); |
|
|
9 |
dirUtilities = './libraries/lib_FQPath/utilities/'; |
|
|
10 |
|
|
|
11 |
%General parameters |
|
|
12 |
savefile = 1; |
|
|
13 |
logS = 1; |
|
|
14 |
fidLogs{1} = 1; %stdoutput |
|
|
15 |
%multi-core |
|
|
16 |
numCoresFeatExtr = 8; |
|
|
17 |
numCoresKnn = 2; |
|
|
18 |
%ext |
|
|
19 |
ext = 'tif'; |
|
|
20 |
%dirs |
|
|
21 |
dirOrig = '.\imgs\orig\'; |
|
|
22 |
dirTest = '.\imgs\test\'; |
|
|
23 |
mkdir_pers(dirTest, savefile); |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
27 |
%A. process DB files |
|
|
28 |
fprintf(1, 'Processing DB...\n\n\n'); |
|
|
29 |
step_A_process_ALL_IDB(dirOrig, dirTest, ext, fidLogs, savefile); |
|
|
30 |
clc |
|
|
31 |
close all |
|
|
32 |
pause(1); |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
36 |
%B. registration |
|
|
37 |
plotFigures = 0; |
|
|
38 |
fprintf(1, 'Registering images...\n\n\n'); |
|
|
39 |
step_B_registration(dirTest, dirUtilities, ext, fidLogs, logS, savefile, plotFigures); |
|
|
40 |
clc |
|
|
41 |
close all |
|
|
42 |
pause(1); |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
46 |
%C. VAR-PCANet |
|
|
47 |
plotFigures = 1; |
|
|
48 |
fprintf(1, 'Adaptive unsharpening using VAR-PCANet...\n\n\n'); |
|
|
49 |
step_C_varpcanet(dirTest, dirUtilities, ext, numCoresFeatExtr, numCoresKnn, fidLogs, logS, savefile, plotFigures); |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|