Skip to content

Commit

Permalink
Merge pull request #446 from jakirkham/rev_trans_shifts_within_frame
Browse files Browse the repository at this point in the history
Revert "Wrap large and negative shifts"
  • Loading branch information
jakirkham authored Apr 6, 2017
2 parents 1aca5cb + dcb9171 commit bd51140
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nanshe/imp/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ def register_mean_offsets(frames2reg,
frames2reg_fft[range_ij], template_fft
)

# Translate shifts to fit within one frame.
for range_ij in iters.subrange(0, len(frames2reg), block_frame_length):
this_space_shift[range_ij] %= numpy.array(frames2reg_fft.shape[1:])

# Remove global shifts.
this_space_shift_mean[...] = 0
for range_ij in iters.subrange(0, len(frames2reg), block_frame_length):
Expand Down

0 comments on commit bd51140

Please sign in to comment.