ome / ome-zarr-py

Implementation of next-generation file format (NGFF) specifications for storing bioimaging data in the cloud.
https://pypi.org/project/ome-zarr
Other
151 stars 53 forks source link

Scaling issues #268

Open will-moore opened 1 year ago

will-moore commented 1 year ago

Various scaling issues have been reported. These are due to the initial Scaler designed to scale planes (or a series of planes) in 2D and to work with numpy arrays rather than dask arrays.

Currently, there are a bunch of different algorithms available for scaling: All of these generate a full pyramid (List[ndarray]) scaled in X and Y only. Only nearest supports dask arrays.

Question: Do we want to support n-Dimensional scaling with Dask support for all of the above methods? See example of this at https://github.com/spatial-image/multiscale-spatial-image/blob/efc0ddc167cd2a14ceac4898e4edf08e7789c368/multiscale_spatial_image/to_multiscale/to_multiscale.py#L26

will-moore commented 1 year ago

Also see https://github.com/thewtex/ngff-zarr which does scaling. E.g. https://ngff-zarr.readthedocs.io/en/latest/apidocs/ngff_zarr/ngff_zarr.to_multiscales.html