-
Notifications
You must be signed in to change notification settings - Fork 1
/
parameters.h
executable file
·92 lines (68 loc) · 2.62 KB
/
parameters.h
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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef PARAMETERS_H
#define PARAMETERS_H
// METHODS (functionals)
#define M_TVL1 0
#define M_TVL1_W 1
#define M_NLTVL1 2
#define M_NLTVL1_W 3
#define M_TVCSAD 4
#define M_TVCSAD_W 5
#define M_NLTVCSAD 6
#define M_NLTVCSAD_W 7
#define M_TVL1_OCC 8
// IMAGE_PARAMETERS
#define PRESMOOTHING_SIGMA 0.90
// OPTICAL FLOW PARAMETERS
#define PAR_DEFAULT_LAMBDA 40//23.4547299737(TVL1+OCC) //41.8887721851 //40
#define PAR_DEFAULT_THETA 0.3//0.283263949386(TVL1+OCC) //0.683018503834 //0.3
#define PAR_DEFAULT_TAU 0.125 //0.25
#define PAR_DEFAULT_BETA 0.025//0.701945704713(TVL1+OCC) //0.025
#define PAR_DEFAULT_ALPHA 0.0706776435878
#define PAR_DEFAULT_TAU_U 0.0739776273913
#define PAR_DEFAULT_TAU_ETA 0.0839911992024
#define PAR_DEFAULT_TAU_CHI 0.134077646787
#define PAR_DEFAULT_MU 1.4058686732 //1
#define PAR_DEFAULT_TOL_D 0.01
#define PAR_DEFAULT_VERBOSE 0 //0
#define SAVE_RESULTS 0//1 Save intermediate flows to "../Results/Partial_results/"
// Best params TFM for TVL1+OCC:
//Lambda Theta Beta Alpha Tau u Tau eta Tau chi mu
//23,4547299737 0,283263949386 0,701945704713 0,0706776435878 0,0739776273913 0,0839911992024 0,134077646787 1,4058686732
#define PAR_DEFAULT_GAMMA 0.05
#define MAX_ITERATIONS_LOCAL 4 //4
#define MAX_ITERATIONS_GLOBAL 400 //400
#define GRAD_IS_ZERO 1E-8
#define GRAD_IS_ZERO_GLOBAL 1E-10
#define PAR_DEFAULT_NPROC 0 //0
#define PAR_DEFAULT_NWARPS_LOCAL 1 //1
#define PAR_DEFAULT_NWARPS_GLOBAL 5 //5
#define ITER_XI 25
#define ITER_CHI 25
#define THRESHOLD_DELTA 0.6
#define GLOBAL_STEP 1
#define LOCAL_STEP 0
// Parameters for faldoi and prunning
#define LOCAL_ITER 3 //3
#define TU_TOL 0.01
#define FB_TOL 2// Default = 2
#define PAR_DEFAULT_WINSIZE 5 // Default patch/window size
// Whether to partition the image or not
#define PARTITIONING 0 // Toggle on/off
#define PARTS_CPU 0 // Whether the parts are conditioned on the num of cpus
#define HOR_PARTS 3 // Def. nº of horizontal parts for the first partition
#define VER_PARTS 2 // The same as above but for vertical parts
// Parameters for bilateral filter
#define PATCH_BILATERAL_FILTER 2
#define SIGMA_BILATERAL_DIST 4.0
#define SIGMA_BILATERAL_COLOR 0.08
#define ITER_BILATERAL_FILTER 10
// Specific stuff for NLTV
#define NL_SPATIAL 2
#define NL_INTENSITY 2
#define NL_BETA 2 //Neighbour
#define NL_DUAL_VAR (2*NL_BETA + 1)*(2*NL_BETA + 1) - 1 // 5x5
// Specific Stuff for the CSAD
#define DT_R 3 //Neighbour 7x7
#define DT_NEI (2*DT_R + 1)*(2*DT_R + 1) - 1 // 7x7
#define MAX_PATCH 50
#endif // PARAMETERS_H