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

Add pyramidal ome-tiff support #9

Closed
jni opened this issue May 19, 2021 · 3 comments
Closed

Add pyramidal ome-tiff support #9

jni opened this issue May 19, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@jni
Copy link
Member

jni commented May 19, 2021

Christoph Gohlke shared his recipe here:

https://forum.image.sc/t/wholeslide-ome-tiff-in-napari-from-ipython/52872/5

import tifffile
import zarr
import napari

filename = 'HSM0170-20x20.ome.tiff'  # 163 GB compressed

store = tifffile.imread(filename, aszarr=True)
zgroup = zarr.open(store, mode='r')
print(zgroup.info)
print(zgroup[0].info)
data = [
    zgroup[int(dataset['path'])]
    for dataset in zgroup.attrs['multiscales'][0]['datasets']
]

viewer = napari.view_image(data, rgb=True, contrast_limits=[0, 255])
napari.run()
store.close()
@GenevieveBuckley
Copy link
Collaborator

PRs welcome!

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/napari-ome-tiff-reader/91918/14

@GenevieveBuckley
Copy link
Collaborator

Closed by #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants