Skip to main content

A tool for H&E image augmentation

Project description

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

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

stainaug-0.0.4.tar.gz (7.0 kB view hashes)

Uploaded Source

Supported by

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