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 |
1 reply
|
I realized that CaImAn/caiman/motion_correction.py Lines 2194 to 2207 in bb55800 Here, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions