-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·56 lines (43 loc) · 1.36 KB
/
config.py
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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
"""
CFG = dict(
downsize = 500,
preprocess_images = dict(
blur_sigma = 2,
# equalize = True, # same speed, same results?
equalize = False,
normalize = False, # same speed, same results?
# normalize = False,
# edge = True, # faster
edge = False, # better results?
edge_sigma = 2,
edge_low_threshold = 0.05,
edge_high_threshold = 0.1,
),
extract_features = dict(
method='HARRIS',
# method='ORB',
min_distance = 1,
threshold_rel = 1e-7,
patch_size=59,
),
ransac = dict(
residual_threshold = 10, # higher - more good matches will be found, longer time?
min_samples = 5,
max_trials = 10000,
),
match = dict(
max_distance = 200,
),
irr_weight = .5,
model_robust_param_limits = [ # detect excessive transformation
[ [-10,-1,-100],
[-1,-2,-100],
[-0.1,-0.02,0] ],
[ [10,1,100],
[1,2,100],
[0.1,0.02,2] ]
]
)