VahadaneNormalizer¶
- class VahadaneNormalizer[source]¶
Vahadane stain normalizer.
Normalize a patch to the stain appearance of the target image using the method of:
Vahadane, Abhishek, et al. “Structure-preserving color normalization and sparse stain separation for histological images.” IEEE transactions on medical imaging 35.8 (2016): 1962-1971.
This class contains code inspired by StainTools [https://github.com/Peter554/StainTools] written by Peter Byfield.
Examples
>>> from tiatoolbox.tools.stainnorm import VahadaneNormalizer >>> norm = VahadaneNormalizer() >>> norm.fit(target_img) >>> norm_img = norm.transform(source_img)
Initialize
VahadaneNormalizer
.Methods