π Quick startΒΆ
InstallationΒΆ
pip install "ngff-zarr[cli]"
Command line conversionΒΆ
ngff-zarr -i ./cthead1.png -o ./cthead1.ome.zarr
NumPy array to OME-ZarrΒΆ
import ngff_zarr as nz
import numpy as np
data = np.random.randint(0, 256, int(1e6)).reshape((1000, 1000))
multiscales = nz.to_multiscales(data)
nz.to_ngff_zarr('example.ome.zarr', multiscales)