-
Notifications
You must be signed in to change notification settings - Fork 21
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
issues with loading labels data with this plugin #99
Comments
btw — I'm not really sure from reading the spec:
ie, are my issues above spec issues or implementation issues? 🙏 |
(but the fact that it talks about "the special 'labels' group" suggests that only one labels group is allowed...) |
To add to this: Multiple labels are allowed but not multiple labels groups. One labels group can be created in which one would nest all the labels the user wants. To quote the spec:
The labels group is essentially only a metadata group, not an image group. For example, I have multiple Zarr datasets where segmentation is stored in /labels/mask, not directly in /labels This thus also means that labels without images don't make sense in the spec as the labels group directly relates to the main image in the OME-Zarr file. Conceptually this also makes sense to me, as labels without a main image are just a different image. |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/creating-multiple-labels-for-a-single-ome-ngff-ome-zarr-image/92343/3 |
I think we we decided not to load labels initially because we are in the OMERO mindset, and that is typical behaviour of OMERO image viewers. I would be happy to change this as the performance argument is not really valid with multiscale images (and masks are generally smaller dtypes than the image itself). You need to nest multiple labels under a single Updated script
|
No, labels have very specific display and interpretation implications — they should ~never be displayed with a continuous colormap, for example. Essentially, they are categorical data, and there needs to be an indication of this, so that they are not interpreted as numerical. Come to think of it, coining the term "categorical image" might not be a terrible idea... 🤔
Awesome, thanks @will-moore! Three questions:
|
In looking, I also found this (standalone labels) ome/ngff#179 which is relevant to this discussion. |
Fantastic, thanks for the links and resources. I'll try to get things moving on this. 😊 |
This issue has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/save-a-single-labels-dataset-into-an-ome-zarr/93505/5 |
@jni over in ome/ngff#203 I proposed a) adding some metadata to describe the units of the values of an image, b) using that metadata to convey the "categoricalness" of an image, I'd be interested in your feedback on that idea. |
I'm working on saving a dataset that contains multiple segmentations per image (manual segmentations by different people). Trying stuff out, I'm having three related issues:
I test reading in with
napari --plugin napari-ome-zarr path/to/example.zarr
. I've got two scripts to reproduce the issue, both based on thewrite_image
script from theome-zarr-py
docs.Any advice here is appreciated! I don't know how much is intentional design vs how much is simply historical.
(1) Writing an ome-zarr image with two labels groups (only the first group is loaded)
(2) Writing an ome-zarr file with no image but with a labels group (reading fails altogether)
The text was updated successfully, but these errors were encountered: