MacenkoNormalizer

class MacenkoNormalizer[source]

Macenko stain normalizer.

Normalize a patch to the stain appearance of the target image using the method of:

Macenko, Marc, et al. “A method for normalizing histology slides for quantitative analysis.” 2009 IEEE International Symposium on Biomedical Imaging: From Nano to Macro. IEEE, 2009.

This class contains code inspired by StainTools [https://github.com/Peter554/StainTools] written by Peter Byfield.

Examples

>>> from tiatoolbox.tools.stainnorm import MacenkoNormalizer
>>> norm = MacenkoNormalizer()
>>> norm.fit(target_img)
>>> norm_img = norm.transform(source_img)

Initialize MacenkoNormalizer.

Methods