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
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 openwholeslide-0.3.1.tar.gz.
File metadata
- Download URL: openwholeslide-0.3.1.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b50854f85d6d018afdde0756329164ec426068d5675234bde0c3fa792830009
|
|
| MD5 |
0e9e2819339a52e4eba87844ce694ece
|
|
| BLAKE2b-256 |
d720096ed637712d34875bff91126d055dc92ceec694e361c4ff5bdbd2267f31
|
File details
Details for the file openwholeslide-0.3.1-py2.py3-none-any.whl.
File metadata
- Download URL: openwholeslide-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 14.0 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 |
7f4cec7d3147565317977f2b89befb19150a9cb1a838bfb8642bd4723fe349ce
|
|
| MD5 |
473cea90a266e9adfebdd677f383441b
|
|
| BLAKE2b-256 |
968465682016b4304d4ae5c057a1b0a7ac96047cf166a5795fc4424e376531a1
|