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
tomotools
Nabu
Commits
e6e2cf40
Commit
e6e2cf40
authored
Sep 29, 2020
by
Pierre Paleo
Browse files
preproc.alignment: Bugfix when not having scipy
parent
bb7390cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
nabu/preproc/alignment.py
View file @
e6e2cf40
...
...
@@ -1024,7 +1024,7 @@ class CameraTilt(CenterOfRotation):
if
__have_scipy__
:
fitted_shifts_h
=
median_filter
(
fitted_shifts_h
,
size
=
3
)
else
:
fitted_shifts_h
=
median_filter_1d
(
fitted_shifts_h
,
size
=
3
)
fitted_shifts_h
=
median_filter_1d
(
fitted_shifts_h
,
kernel_
size
=
3
)
half_img_size
=
(
img_shape
[
-
2
]
-
1
)
/
2
cc_v_coords
=
np
.
linspace
(
-
half_img_size
,
half_img_size
,
img_shape
[
-
2
])
...
...
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