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.2.tar.gz
(13.8 kB
view details)
Built Distribution
File details
Details for the file openwholeslide-0.1.2.tar.gz
.
File metadata
- Download URL: openwholeslide-0.1.2.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ad528288b28322ab692ffb3f5b0879a327f0a8a5a41e3865458a8e7c900f52 |
|
MD5 | 44d31c5045237a999fbc1eea22c20bd6 |
|
BLAKE2b-256 | 3e46d2f39b92eb033c2692e7186b3462cebeea676c5185bfb8436d15121be35c |
File details
Details for the file openwholeslide-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: openwholeslide-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 241461510ef62483163c3d8ae6211465df0d8943655efd0c11fd8b2c40d044cd |
|
MD5 | 520dbcee8fc71fce560b5775f07cbcac |
|
BLAKE2b-256 | 453dfb0ec07a61caec039145eb67f1a2ea53d5344d9e7589592fdd01065b660e |