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

clarify the type of downscaling that is currently implemented #1

Open
d-v-b opened this issue Dec 3, 2020 · 1 comment
Open

clarify the type of downscaling that is currently implemented #1

d-v-b opened this issue Dec 3, 2020 · 1 comment

Comments

@d-v-b
Copy link
Collaborator

d-v-b commented Dec 3, 2020

At the moment only reductions over contiguous non-overlapping regions are supported, e.g. windowed averaging. From a signal processing perspective this is not the ideal method for downscaling -- it would be better to apply a gaussian filter to attenuate out-of-band frequencies and then downsample. However this is not possible as long as dask.array.coarsen is used to generate the downscaled array. Look into using dask.array.map_overlap or the gaussian smoothing functionality in dask-image to implement a gaussian pyramid.

cc @mkitti

@mkitti
Copy link

mkitti commented Dec 4, 2020

dask.array.map_overlap looks promising and seems to fit more closely with your current API although I'm curious if dask-image contains some optimizations.
https://docs.dask.org/en/latest/array-overlap.html

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