Skip to content

A python library for hematoxylin and eosin (H&E) stain augmentation.

License

Notifications You must be signed in to change notification settings

estorrs/stainaug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example augmentation

A lightweight wrapper for image normalization implemented by DIAGNijmegen, which used deconvolution based methods from Faryna et al. and Tellez et al..

Installation

pip install stainaug

Basic Usage

import PIL.Image as Image
import numpy as np

from stainaug import Augmentor

# read in image
image_filepath = </path/to/image.jpeg>
img = np.asarray(Image.open(image_filepath))

# initialize augmentor
augmentor = Augmentor()

# transform image
augmented_img = augmentor.augment_HE(img)

Examples

For more examples see notebook here

About

A python library for hematoxylin and eosin (H&E) stain augmentation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages