bioimage-analysis / HumsaTraces

MIT License
0 stars 0 forks source link

motion correction not working #1

Open humsav opened 6 years ago

humsav commented 6 years ago

when I type : shifts = list_shift(ch1) (photo attached)

screen shot 2018-09-12 at 9 34 32 am

IndexError Traceback (most recent call last) ~/HumsaTraces/cellsync/registration.py in listshift(img) 32 ---> 33 shift, , _ = register_translation(im[0], im[val], 100) 34 shift = shift+add

IndexError: index 200 is out of bounds for axis 0 with size 120

During handling of the above exception, another exception occurred:

IndexError Traceback (most recent call last)

in () ----> 1 shifts = list_shift(ch1) ~/HumsaTraces/cellsync/registration.py in list_shift(img) 34 shift = shift+add 35 except IndexError: ---> 36 shift, _, _ = register_translation(im[0], im[val-1], 100) 37 shift = shift+add 38 shifts = np.vstack((shifts, shift)) IndexError: index 199 is out of bounds for axis 0 with size 120
bioimage-analysis commented 6 years ago

Could you tell me the shape of ch1?

humsav commented 6 years ago

sure ch1 shape: (320, 325, 367)

bioimage-analysis commented 6 years ago

I made a modification to registration.py (in code > cellsync) and I changed the function "def list_shift(img)". If you just downloaded the folder on your desktop, you can just copy paste the new function in your folder.