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
ec94b9ff
Commit
ec94b9ff
authored
Jan 25, 2022
by
katharina.loeffler
Browse files
bug fix: adding missing masks - include img border
parent
4de05477
Changes
1
Hide whitespace changes
Inline
Side-by-side
tracker/postprocessing.py
View file @
ec94b9ff
...
...
@@ -47,7 +47,7 @@ def add_dummy_masks(all_tracks, img_shape):
for
t_s
,
t_e
,
t_span
in
zip
(
t_start
,
t_end
,
time_span
)
for
tt
in
range
(
1
,
t_span
)}
# mask pixels must lay in img 0...img_shape, neg indices lead to placement on other side of array
dummy_masks
=
{
k
:
tuple
(
mask
[...,
np
.
all
((
mask
>
0
)
&
(
mask
<
np
.
repeat
(
img_shape_squeezed
,
dummy_masks
=
{
k
:
tuple
(
mask
[...,
np
.
all
((
mask
>
=
0
)
&
(
mask
<
np
.
repeat
(
img_shape_squeezed
,
mask
.
shape
[
-
1
],
axis
=-
1
)),
axis
=
0
)])
...
...
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