Skip to main content

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


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.3.6.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openwholeslide-0.3.6-py2.py3-none-any.whl (14.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file openwholeslide-0.3.6.tar.gz.

File metadata

  • Download URL: openwholeslide-0.3.6.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for openwholeslide-0.3.6.tar.gz
Algorithm Hash digest
SHA256 15beb5b7a3de76d3317af589ad4d90b552937bb04e844e1323eec8dedb5a468b
MD5 31a7db3d2b3314e2275aa699afb5ebdd
BLAKE2b-256 d1d65f0e1b9d3f4353571a2d61b91c249e8da37eba0acb7d7f4660e46afebcf6

See more details on using hashes here.

File details

Details for the file openwholeslide-0.3.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for openwholeslide-0.3.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 292072458eaa72566e40b9661139d32889c4b78b9bdbffc5ab0a252e9d3b6295
MD5 559c7b555cf56076e018070ce62eaab6
BLAKE2b-256 205f5e28b848af390a42308dad9b8b26372bbb51b40c5765bd56efcfbf2ce589

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page