wsi#

wsi is a Python library for processing whole slide images (WSI).

It is a simple library with an object-oriented interface where all operations are performed with a WholeSlideImage object.

It has the goal of doing basic processing of WSIs with reasonable defaults, but high customizability.

For example, to go from a slide remotely hosted to a torch geometric graph with ResNet50 features, the following lines suffice:

from wsi import WholeSlideImage
slide = WholeSlideImage("https://brd.nci.nih.gov/brd/imagedownload/GTEX-O5YU-1426")
slide.segment()
slide.tile()
data = slide.as_torch_geometric_data(model_name='resnet50')

Head over to the Installation and API reference pages to learn more.