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

Crop does not work with multiscale images #14

Open
tdmorello opened this issue Dec 30, 2021 · 2 comments
Open

Crop does not work with multiscale images #14

tdmorello opened this issue Dec 30, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@tdmorello
Copy link
Contributor

crop_region fails to crop multiscale (like pyramid format) images. I think it will be import to support pyramid ome-tiff's and NGFF moving forward.

Some thoughts:
If the crop is large, it should copy or regenerate pyramids for the resulting image
If the crop is small, it might make sense to only keep the highest scale image

@VolkerH
Copy link

VolkerH commented Sep 13, 2022

Just another +1 to this !

@haesleinhuepf haesleinhuepf added the enhancement New feature or request label Sep 13, 2022
@pr4deepr
Copy link

+1 as well

One approach is to:

  • Check if layer data type is multiscale: napari.layers._multiscale_data.MultiScaleData
  • If so, get the length of the layer, which will show how many scales there are.

Let the user decide which scale to crop (possibly easier).
OR
iterate through all scales, crop all of them at different scales and merge.

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

No branches or pull requests

4 participants