Skip to content

Commit

Permalink
fix bug that was flipping x-y dirs in pw_rigid
Browse files Browse the repository at this point in the history
  • Loading branch information
epnev authored Aug 14, 2019
1 parent 5ac93ee commit f568310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions caiman/motion_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2368,8 +2368,8 @@ def tile_and_correct_3d(img, template, strides, overlaps, max_shifts, newoverlap
x_grid, y_grid, z_grid = np.meshgrid(np.arange(0., dims[1]).astype(
np.float32), np.arange(0., dims[0]).astype(np.float32),
np.arange(0., dims[2]).astype(np.float32))
m_reg = warp_sk(img, np.stack((resize_sk(shift_img_y.astype(np.float32), dims) + x_grid,
resize_sk(shift_img_x.astype(np.float32), dims) + y_grid,
m_reg = warp_sk(img, np.stack((resize_sk(shift_img_y.astype(np.float32), dims) + y_grid,
resize_sk(shift_img_x.astype(np.float32), dims) + x_grid,
resize_sk(shift_img_z.astype(np.float32), dims) + z_grid),axis=0),
order=3, mode='constant')
# borderValue=add_to_movie)
Expand Down

0 comments on commit f568310

Please sign in to comment.