Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.04 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.04 KB

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