Wrapper around tifffile library to have the same API as OpenSlide.
Project description
openwholeslide
Wrapper around tifffile library to have the same API as OpenSlide.
Installation
$ pip install openwholeslide
Usage
- Similarly to OpenSlide, the openwholeslide package allows to load a WSI as follows:
import openwholeslide as ows
wsi = ows.WholeSlide(path="/path/to/wsi")
- Regions can be extracted from this WholeSlide object. For example, a lower resolution of the full scale WSI can be extracted as follows:
region = wsi.read_full(magnification=1.0)
- This actually performs a lazy loading which does not load the data information. In order to get access to the region's pixels (as an numpy.ndarray), the following property should be called:
img = region.as_ndarray
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
openwholeslide
was created by Arthur Elskens and Adrien Foucart. It is licensed under the terms of the MIT license.
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 Distribution
openwholeslide-0.1.1.tar.gz
(13.8 kB
view hashes)
Built Distribution
Close
Hashes for openwholeslide-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58aa271db58a78e9c0c0cf73c28e84adf77f88e66afe46d5bca9a5e26da5b8c9 |
|
MD5 | 42d5990b7498f97e2eca5735de24395c |
|
BLAKE2b-256 | 8e0fb6050749c0dc1d9f547696bcce0837e294a4ae3a9225adc88a11aa43d124 |