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

Wrapper around skimage.pyramid_gaussian using coarsen #259

Open
swelborn opened this issue Mar 30, 2022 · 0 comments
Open

Wrapper around skimage.pyramid_gaussian using coarsen #259

swelborn opened this issue Mar 30, 2022 · 0 comments

Comments

@swelborn
Copy link

I wrote a wrapper around skimage.pyramid_gaussian that uses da.coarsen and other dask and dask-image functions. You can find it here.

This is a fix for people who want to pyramid downsample their time series image data (i.e. you have a 3D array with shape Z, Y, X, and the 3D array will be recursively downsampled to Z, Y/2, X/2 --> Z, Y/4, X/4 --> Z, Y/8, X/8). I realized the reason you probably haven't made a zoom function is because there is some C or C++ code associated with ndi.zoom, I guess.

Right now it is totally unclean/disorganized/highly specific because I copied the code from the functional chain in skimage.pyramid_gaussian and applied it for my specific purpose.

I'm gauging interest to see if this is something you would want to add to dask_image. Some of the features in skimage.pyramid_gaussian won't be possible because it doesn't use ndi.zoom, but I could make it a bit more general and submit a PR. Logic is mostly there, just in need of name changes etc.

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

1 participant