A plugin to read whole-slide images within napari.
Project description
napari-wsi
A plugin to read whole-slide images within napari.
Installation
You can install napari-wsi via pip:
pip install napari-wsi[all]
This automatically installs all optional backends, as a shortcut for:
pip install napari-wsi[openslide,rasterio,wsidicom]
In addition, to be able to read images using the openslide backend, it is
required to install the OpenSlide library itself, for example by installing the
openslide-bin python package (also via pip).
Description
This napari plugin provides a widget for reading various whole-slide image formats using a common zarr store inteface, based on the libraries openslide, rasterio, and wsidicom.
Quickstart
After installation, open the Plugins menu in the viewer and select
WSI Reader to open the widget. Then select a Backend to use, select a Path
to open, and click Load.
If sRGB is selected in the Color Space menu and an ICC profile is attached
to the given image, a transformation to this color space will be applied when
the image data is read. Otherwise, the raw RGB image data will be displayed.
This plugin can also be used to open image files via drag and drop into the
viewer window. The file suffixes '.bif', '.ndpi', '.scn', '.svs' are registered
with the openslide backend, while the suffixes '.tif' and '.tiff' are
registered with the rasterio backend. These files can also be opened directly
from the command line or from a python script:
napari CMU-1.svs
from napari.viewer import Viewer
viewer = Viewer()
viewer.open("CMU-1.svs", plugin="napari-wsi")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file napari_wsi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: napari_wsi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e104cbee35d799f29c355cf7b1c9daa5f3a12f3b8174d544470a6de852fa74da
|
|
| MD5 |
93c525194da3afaada2f9cddd0862c8b
|
|
| BLAKE2b-256 |
d90224defcf4ab47bd203ea06418a717d50ec09fb44c0cecc11b62984fb58a54
|