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
Metadata
Release files for stainaug 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stainaug-0.0.4.tar.gz | 7.0 kB | Without provenance | Details for stainaug-0.0.4.tar.gz |
Release files / stainaug-0.0.4.tar.gz
| Download URL | stainaug-0.0.4.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3c00072f9af99d8812a7a7918a9d7093968f88e450d50fc849e70d8d35350af
|
|
BLAKE2b-256 checksum How to use checksums |
875e3146e32d5d324a8fec2eb6db828c921d4fb7675a732a27ca19dba5b561d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for stainaug 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.