-
Notifications
You must be signed in to change notification settings - Fork 13
Return position #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Sorry for the delay and thank you for your interest in the project. I have a few concerns with this approach:
Is it correct to think of the slice number as a z coordinate? Perhaps it makes sense to return a nx3 array if e.g. |
|
Thanks you for your reply, and I think you made a good point. Yes, the slice number here is the z coordinate of the roi. It is true that my approach breaks the existing code. However, returning an nx3 array may not be the best approach because roi files contain coordinate information in 5d (xyz + time + color). x and y positions are always used, but coordinates in the ztc space are not. I guess this is why xy and ztc coordinates are treated differently in the RoiDecoder.java. If I am not mistaken, ztc positions in a roi file are just stored as single numbers, whereas in xy, we have arrays. I thought it might be more natural to return xy and z separately (and eventually t and c as well). Alternatively, we could return a nx3 (or nx5) array depending on the keyword args? What do you think? I will work on the test soon. |
|
If we extend it that way, an option might be to rename I should maybe check to see if anyone is actually using this code before I sweat API breakage too much, though :) |
Looking at RoiDecoder, I agree. |
ijroi.read_roi now returns the z position (slice number) of a roi.