write_multiscale_ome_zarr#

brainglobe_atlasapi.atlas_generation.stacks.write_multiscale_ome_zarr(images, output_path, transformations, axes)[source]#

Write a multiscale image pyramid to an OME-Zarr file.

Parameters:
  • images (list of np.ndarray) – A list of image stacks representing different levels of the pyramid.

  • output_path (Path) – The path where the OME-Zarr file will be saved.

  • transformations (list of lists of dicts) – A list of transformations to be saved alongside the images.

  • axes (list of dicts, optional) – A list of axis descriptors to be included in the OME-Zarr metadata. If not provided, defaults to BG_OME_ZARR_AXES.