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

set downsampling factors in the cli #39

Open
d-v-b opened this issue Jun 22, 2023 · 1 comment
Open

set downsampling factors in the cli #39

d-v-b opened this issue Jun 22, 2023 · 1 comment

Comments

@d-v-b
Copy link

d-v-b commented Jun 22, 2023

I noticed that the default behavior of the cli appears to be anisotropic downsampling, e.g. x and y dimensions get downsampled but not z. Is there a way to change this via the cli? I have isotropic data, and so I want to downsample it isotropically.

@thewtex
Copy link
Owner

thewtex commented Jun 28, 2023

The default behavior is to pick downsampling facts that will result in pixel sizes that will be more uniform in all directions.

Yes, we could add a CLI parameter to specify scale factors by parsing an argument and passing through following:

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}]

This would make it easy to specify a desired isotropic spacing.

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

No branches or pull requests

2 participants