Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KIT-Sch-GE
2021 Cell Tracking
Commits
0a3c32ad
Commit
0a3c32ad
authored
Mar 19, 2021
by
sp8646
Browse files
edit arg parse arguments
parent
49ae2833
Changes
1
Hide whitespace changes
Inline
Side-by-side
run_tracking.py
View file @
0a3c32ad
...
...
@@ -44,12 +44,15 @@ def run_graph2_0(img_path, segm_path, res_path, delta_t=3, default_roi_size=2):
if
__name__
==
'__main__'
:
from
argparse
import
ArgumentParser
PARSER
=
ArgumentParser
(
description
=
'Tracking KIT-Sch-GE'
)
PARSER
.
add_argument
(
'--image_path'
,
type
=
str
)
PARSER
=
ArgumentParser
(
description
=
'Tracking KIT-Sch-GE.'
)
PARSER
.
add_argument
(
'--image_path'
,
type
=
str
,
help
=
'path to the folder containing the raw images.'
)
PARSER
.
add_argument
(
'--segmentation_path'
,
type
=
str
,
help
=
'path to the folder containing the segmentation images.'
)
PARSER
.
add_argument
(
'--results_path'
,
type
=
str
,
help
=
'path where to store the tracking results. '
'If the results path is the same as the segmentation'
'_path the segmentation images will be overwritten.'
)
PARSER
.
add_argument
(
'--delta_t'
,
type
=
int
,
default
=
3
)
PARSER
.
add_argument
(
'--default_roi_size'
,
type
=
int
,
default
=
2
)
ARGS
=
PARSER
.
parse_args
()
SEGM_PATH
=
Path
(
ARGS
.
image_path
).
as_posix
()
+
'_RES'
run_graph2_0
(
ARGS
.
image_path
,
SEGM_PATH
,
SEGM_PATH
,
ARGS
.
delta_t
,
ARGS
.
default_roi_size
)
run_graph2_0
(
ARGS
.
image_path
,
ARGS
.
segmentation_path
,
ARGS
.
results_path
,
ARGS
.
delta_t
,
ARGS
.
default_roi_size
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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