Replies: 2 comments 1 reply
-
they probably mixed up how cartesian coordinates are usually written in xy order but matrices are rows, cols which becomes y, x if you put an image on a cartesian plane |
Beta Was this translation helpful? Give feedback.
-
I realized that CaImAn/caiman/motion_correction.py Lines 2194 to 2207 in bb55800 Here, |
Beta Was this translation helpful? Give feedback.
-
I just realized, using a simple test case and then verifying by looking through the code a bit, that the shifts returned from motion correction are in (Y, X, Z) order, i.e. the indexing order assuming a properly constructed movie object or mmap file is passed in, rather than (X, Y, Z) order. In places where variables have x, y, or z in the name, e.g.
{x,y,z}_shifts_els
, it seems that X actually refers to Y and vice versa.Is this intentional? It's not causing any bugs because it's used consistently that way within the file, but if someone wants to do something else with the shifts they could get confused. I know at least one mesmerize docstring needs to change based on this.
Beta Was this translation helpful? Give feedback.
All reactions