-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add API for writing image-label #171
Comments
Threre's an example at https://github.com/ome/ome-zarr-py/blob/0ea5bf61ef754069abf4f223897d55630c953fbf/README.rst |
Thanks @will-moore; the example was very helpful and I could update my scripts to write ome.zarr with labels. |
Looking at the example, I could imagine wrapping the succession of low-level calls into utilities dealing with the group/metadata creation/update e.g.
or
It would be interesting to know you would see the value of introducing such API based on your usage @constantinpape. |
Yes, absolutely! |
I have updated the title of this issue to reflect the new scope. So current preference would be rather a single API that would first create/update the intermediate groups (depending on the presence of labels) and then write the label image, is that correct? In terms of behavior, I agree the API should also support both mandatory as well as optional For the metadata, my current preference would be to extend Thinking of the sequence of a |
I think users will find |
As discussed in ome/napari-ome-zarr#33 this API would need to also add the group-level "labels" metadata, which btw should be explained better in the spec, see ome/ngff#108. |
Implemented in #178 |
Is there support to write "image-label" datasets (https://ngff.openmicroscopy.org/latest/#label-md) in ome-zarr-py already?
If yes, how do I use it?
The text was updated successfully, but these errors were encountered: