Motion_correction module
- Motion_correction.find_shift(frame1, frame2, crop=3700)
- Motion_correction.shift_elements(arr, shifts, fill_value)
shifts an array by set values, with the remaining values being set to ‘fill_value’ shifts are entered in format of [y,x] and will shift with up and left being the negative direction. This was designed to work with the find_shifts() function above, however this appears to be problematic (I think it doesn’t shift in negative directions correctly). aligning based on particle coordinates should work.