forked from mawady/ColorSymDetect
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparameters.py
More file actions
54 lines (45 loc) · 2.42 KB
/
parameters.py
File metadata and controls
54 lines (45 loc) · 2.42 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
# Resize fraction of images
# Lower values will result in higher quality images, but also longer computation time
# Different values possible require adjustments of threshold parameters for optimal results
# 1 will not resize the image
# Default: 4
resize = 4
# Minimum threshold for symmetry scores of main reflection symmetry lines
# Lines with scores below this value will be removed, along with all lines discovered in the same recursive loop.
# This threshold only dictates which lines will be fed to the rotational symmetry machine learning model
# Has no function in 'fast' mode
# Default: 0.09
symThresholdBC = 0.09
# Minimum threshold for normalized symmetry scores of reflection symmetry lines.
# Lines with normalized scores below this value will be removed.
# This threshold only dictates which lines will be fed to the rotational symmetry machine learning model
# Has no function in 'fast' mode
# Default: 0.35
normThresholdBC = 0.35
# Minimum threshold for symmetry scores of main reflection symmetry lines
# Lines with scores below this value will be removed, along with all lines discovered in the same recursive loop.
# Default: 0.20
symThresholdAC = 0.20
# Minimum threshold for normalized symmetry scores of reflection symmetry lines.
# Lines with normalized scores below this value will be removed.
# Default: 0.70
normThresholdAC = 0.70
# Maximum relative score difference between two lines in order for them to form a rotational symmetry in 'fast' mode.
# Has no function in 'slow' mode.
# Default: 0.75
circleSymThreshold = 0.75
# Amount of reflection symmetry axis on which recursiveSym should cut
# Symmetries are ordered by their symmetry score, so recursiveSym will cut the image on the top 'rc' amount of axis.
# Higher numbers yield more localised symmetries but higher computation time
# Default: 3
rc = 3
# Dictates maximum distance between line endpoint for them to be flagged as similar and subsequently be removed
# Maximum distances are calculated as follows: (height or width) / lineSimilarity
# Lower values cause lines to be sooner flagged as similar
# default = 8
lineSimilarity = 8
# Dictates maximum distance between centerpoints and radii of rotational symmetries for them to be flagged as similar and subsequently be removed
# Maximum distances are calculated as follows: (height or width) / rotationSimilarity
# Lower values cause rotational symmetries to be sooner flagged as similar
# default = 5
rotationSimilarity = 3