Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downsample scale option #166

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

will-moore
Copy link
Member

For an Image of C:3, Z:10, Y:1024, X: 1024 you may wish to NOT downsample in Z when exporting. Only downsample in X and Y, e.g.

omero zarr export Image:123 --ds_scale 1,1,2,2

Whereas if you have an image with C:3, Z:1024, Y:1024, X: 1024 you may wish to downsample in Z, e.g.

omero zarr export Image:123 --ds_scale 1,2,2,2

This option gives complete flexibility over downsampling of all dimensions. Too complex?

Compare with ngff-zarr which has

scale_factors : int of minimum length, int per scale or dict of spatial dimension int's per scale
        If a single integer, scale factors in spatial dimensions will be increased by a factor of two until this minimum length is reached.
        If a list, integer scale factors to apply uniformly across all spatial dimensions or
        along individual spatial dimensions.
        Examples: 64 or [2, 4] or [{'x': 2, 'y': 4 }, {'x': 5, 'y': 10}]

at https://github.com/thewtex/ngff-zarr/blob/4a154994a85e2d222999bb3e5d67ab96f5060244/ngff_zarr/to_multiscales.py#L219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant