Skip to content
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

roi pixel mask shape #550

Closed
bendichter opened this issue Jul 5, 2018 · 3 comments
Closed

roi pixel mask shape #550

bendichter opened this issue Jul 5, 2018 · 3 comments
Labels
category: enhancement improvements of code or code behavior help wanted: good first issue request for community contributions that are good for new contributors
Milestone

Comments

@bendichter
Copy link
Contributor

The pixel_mask argument of PlaneSegmentation.add_roi is currently allowed to be (n, (x,y,v)) where n is the number of pixels, x and y are the coordinates of the pixel, and v is the value. If you try to make an roi that is 3D: (n, (x,y,z,v)), there will be an error during the io.write call. I would prefer if we allowed (n, (x,y,z,v)), since rois are sometimes defined in 3D and I think it will be tricky to define 3D rois in any other way. If for some reason we need to keep this only in a single plane, then I would at least like to catch this error on the add_roi call, not during io.write

@ajtritt ajtritt added category: enhancement improvements of code or code behavior help wanted help wanted: good first issue request for community contributions that are good for new contributors labels Jul 9, 2018
@jayrbolton
Copy link
Contributor

Hi @bendichter, here is my reproduction of this problem (I think the add_roi func signature has changed recently): https://gist.github.com/jayrbolton/682c984f3f55255d11115f91fde37486. All boilerplate stuff until line 30. Throws an error only on io.write as you describe.

I'm assuming the spec here would need to change to support 3d: https://github.com/NeurodataWithoutBorders/nwb-schema/blob/dev/core/nwb.ophys.yaml#L2. Has that been discussed anywhere?

I can quickly add an error checker, but it seems preferable to just support 3d.

@bendichter
Copy link
Contributor Author

Yes @jayrbolton, it's being discussed here: #554. It would be great to have your input

@oruebel
Copy link
Contributor

oruebel commented Dec 19, 2018

@bendichter can this issue be closed?

@oruebel oruebel added this to the NWB 2.x milestone Dec 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: enhancement improvements of code or code behavior help wanted: good first issue request for community contributions that are good for new contributors
Projects
None yet
Development

No branches or pull requests

4 participants