Commit e6e2cf40 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

preproc.alignment: Bugfix when not having scipy

parent bb7390cd
...@@ -1024,7 +1024,7 @@ class CameraTilt(CenterOfRotation): ...@@ -1024,7 +1024,7 @@ class CameraTilt(CenterOfRotation):
if __have_scipy__: if __have_scipy__:
fitted_shifts_h = median_filter(fitted_shifts_h, size=3) fitted_shifts_h = median_filter(fitted_shifts_h, size=3)
else: 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 half_img_size = (img_shape[-2] - 1) / 2
cc_v_coords = np.linspace(-half_img_size, half_img_size, img_shape[-2]) cc_v_coords = np.linspace(-half_img_size, half_img_size, img_shape[-2])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment