-
Notifications
You must be signed in to change notification settings - Fork 2
/
launch_CNN_ALL.m
77 lines (42 loc) · 1.12 KB
/
launch_CNN_ALL.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
clc
close all
clear variables
fclose('all');
addpath(genpath('./steps'));
addpath(genpath('./libraries'));
addpath(genpath('./functions'));
addpath(genpath('./util'));
dirUtilities = './libraries/lib_FQPath/utilities/';
%General parameters
savefile = 1;
logS = 1;
fidLogs{1} = 1; %stdoutput
%multi-core
numCoresFeatExtr = 8;
numCoresKnn = 2;
%ext
ext = 'tif';
%dirs
dirOrig = '.\imgs\orig\';
dirTest = '.\imgs\test\';
mkdir_pers(dirTest, savefile);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%A. process DB files
fprintf(1, 'Processing DB...\n\n\n');
step_A_process_ALL_IDB(dirOrig, dirTest, ext, fidLogs, savefile);
clc
close all
pause(1);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%B. registration
plotFigures = 0;
fprintf(1, 'Registering images...\n\n\n');
step_B_registration(dirTest, dirUtilities, ext, fidLogs, logS, savefile, plotFigures);
clc
close all
pause(1);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%C. VAR-PCANet
plotFigures = 1;
fprintf(1, 'Adaptive unsharpening using VAR-PCANet...\n\n\n');
step_C_varpcanet(dirTest, dirUtilities, ext, numCoresFeatExtr, numCoresKnn, fidLogs, logS, savefile, plotFigures);