Skip to content

BioImage-Archive/bia-images-masks-to-omezarr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DOI

bia-images-masks-to-omezarr

Script for converting images and segmentation masks to OME-Zarr. Images and masks can be converted to different OME-Zarr files or packed together in a single OME-Zarr file.

Install

Install dependencies with:

pip install -r requirements

Usage

Convert an image or segmentation mask to OME-Zarr:

python convert_images_and_masks_to_omezarr.py /path/to/file

Convert an image and segmentation mask to OME-Zarr and pack them together in a single file:

python convert_images_and_masks_to_omezarr.py /path/to/image  /path/to/mask

By default, the new Zarr file is created in the input image path, but an output file path can be specified using the --output_dirpath option:

python convert_images_and_masks_to_omezarr.py /path/to/image  /path/to/mask --output_dirpath /path/to/output/directory 

About

Code for converting images and segmentation masks to OME-Zarr

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages