You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user calculates Max Intensity Projection on every channel for every FOV, along with maybe some segmentation results, what would be the best way to store them in the new version of zarr store?
The raw microscopy data TCZYX dimensions are not the same for the max proj and binary mask data.
The text was updated successfully, but these errors were encountered:
Assuming you are talking about HCS stores, there are three ways possible:
Store as extra Zarr arrays. The resulting array will not be part of the OME-NGFF metadata, thus cannot be opened by third-party tools such as napari-ome-zarr. To do this:
Where NGFFNode.zgroup is the underlying Zarr group for the NGFF node (plate, position, etc.). Refer to Zarr docs for API details.
Store as extra channels as you would store any other channel. If you chunk by XY-plane, no data will be written for the Z-indices that do not exist (all but one), and they will be zero-filled/black if read/visualized. The main downside is that binary (boolean) values have to be stored in the same dtype as other channels, but this should be quite insignificant, especially if multiple mask channels are combined into integer-valued labels (i.e. back ground is 0 and each object is 1, 2, 3,...).
Masks can also be stored as NGFF labels arrays. There is currently no specific API for it, but can be achieved by:
Thanks for alerting me to this issue @ziw-liu. Yes, It will be useful to have an API to add the label group and link it to the matching image for our work in virtual staining and segmentation of nuclei and membrane. Let's do this during hackathon and document it.
mattersoflight
changed the title
Best way to save max projections and binary masks in the zarr store
Save grayscale data and binary masks in the OME-zarr store
Jun 28, 2024
If the user calculates Max Intensity Projection on every channel for every FOV, along with maybe some segmentation results, what would be the best way to store them in the new version of zarr store?
The raw microscopy data TCZYX dimensions are not the same for the max proj and binary mask data.
The text was updated successfully, but these errors were encountered: