[73298b]: contrib / gel / vgel / vgel_kl_params.cxx Maximize Restore History

Download this file

vgel_kl_params.cxx    66 lines (57 with data), 1.3 kB

 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
// This is gel/vgel/vgel_kl_params.cxx
#ifdef VCL_NEEDS_PRAGMA_INTERFACE
#pragma implementation
#endif
#include <vgel/vgel_kl_params.h>
vgel_kl_params::vgel_kl_params()
{
set_defaults();
}
vgel_kl_params::~vgel_kl_params()
{
}
vgel_kl_params::vgel_kl_params(const vgel_kl_params & params)
{
// A faire
numpoints =params.numpoints;
search_range = params.search_range ;
mindist = 10;
window_width = 7;
window_height = 7;
min_eigenvalue = 1;
min_determinant = (float)0.01;
min_displacement = (float)0.1;
max_iterations = 10;
max_residue = 10.0;
grad_sigma = 1.0;
smooth_sigma_fact = (float)0.1;
pyramid_sigma_fact = (float)0.9;
replaceLostPoints = true;
sequentialMode = false;
smoothBeforeSelecting = true;
writeInternalImages = false;
nSkippedPixels = 0;
verbose = true;
}
void vgel_kl_params::set_defaults()
{
numpoints = 100;
search_range = 15;
mindist = 10;
window_width = 7;
window_height = 7;
min_eigenvalue = 1;
min_determinant = (float)0.01;
min_displacement = (float)0.1;
max_iterations = 10;
max_residue = 10.0;
grad_sigma = 1.0;
smooth_sigma_fact = (float)0.1;
pyramid_sigma_fact = (float)0.9;
replaceLostPoints = true;
sequentialMode = false;
smoothBeforeSelecting = true;
writeInternalImages = false;
nSkippedPixels = 0;
verbose = true;
}