Skip to content

Latest commit

 

History

191 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



GitHub Documentation GitHub release

Help building our code and community!

  • All contributions are welcome! Please raise an issue for a bug, feature or pull request!

  • Tweet about this repo!

  • Give this repo a star! ⭐

Quick Start

Tissue mask and tiling pipeline

from syntax.slide import Slide
from syntax.transformers.tissue_mask import OtsuTissueMask
from syntax.transformers.tiling import SimpleTiling
from syntax.transformers import Pipeline, visualize_pipeline_results

slide = Slide(slide_path=slide_path)
pipeline = Pipeline([OtsuTissueMask(), SimpleTiling(magnification=40,
                                                  tile_size=224,
                                                  max_per_class=10)])
slide = pipeline.fit_transform(slide)
visualize_pipeline_results(slide=slide,
                           transformer_list=pipeline.transformers,
                           title_list=['Tissue Mask', 'Random Tile Sampling'])

Install

pip install compay-syntax==0.4.0

You will need to install openslide. This is included in the dependencies so may be automatically installed. If not I found this to help:

#!/bin/bash

sudo apt-get install openslide-tools
pip install openslide-python

About

🔬 Syntax - the arrangement of whole-slide-images and their image tiles to create well-formed computational pathology pipelines.

Topics

Resources

Stars

55 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages