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.