BiAPoL / napari-crop

BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Crop does not work with multiscale images #14

Open tdmorello opened 2 years ago

tdmorello commented 2 years ago

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 commented 2 years ago

Just another +1 to this !

pr4deepr commented 1 year ago

+1 as well

One approach is to:

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