cortex-lab / Suite2P

Tools for processing 2P recordings
Other
120 stars 65 forks source link

xy shift of reference image #192

Open ruitpeixoto opened 1 month ago

ruitpeixoto commented 1 month ago

We're recording GCaMP in cortex and using tdTomato to label specific cells. We're trying to set up a way to automatically label suite2P ROIs using masks from tdTom images taken at the end of the recordings (using cellpose).

Is there a consistent way to get the xy shift between the last frame and the suite2P reference image?

If I shift the tdTom mask with ops.npy xoff/yoff of the last frame, will that work?

Thank you!