Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hugo Chauvet-Thiry
RootStemExtractor
Commits
9523dc49
Commit
9523dc49
authored
Feb 16, 2022
by
Félix Hartmann
Browse files
[bugfix] Set a default value to the detection stepsize.
parent
199d6504
Changes
2
Hide whitespace changes
Inline
Side-by-side
interekt.py
View file @
9523dc49
...
...
@@ -3834,6 +3834,7 @@ class Interekt:
# Set the space step for skeleton detection process
self
.
detection_step
=
Tk
.
DoubleVar
()
self
.
detection_step
.
set
(
0.3
)
options_menu
.
add_command
(
label
=
_
(
"Stepsize for skeleton detection"
),
command
=
detection_step_setting
)
...
...
interekt_hdf5_store.py
View file @
9523dc49
...
...
@@ -669,6 +669,7 @@ def get_detection_step(hdf5file):
Return the spatial step size (in pixels) used in the algorithm of
skeleton detection.
"""
default_value
=
0.3
step
=
None
with
h5py
.
File
(
hdf5file
,
'r'
)
as
f
:
if
'detection_step'
in
f
:
...
...
@@ -676,6 +677,8 @@ def get_detection_step(hdf5file):
if
step
==
{}:
step
=
None
if
step
is
None
or
not
step
:
step
=
default_value
return
step
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment