RuifrokNormalizer

class RuifrokNormalizer[source]

Ruifrok & Johnston stain normalizer.

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

Ruifrok, Arnout C., and Dennis A. Johnston. “Quantification of histochemical staining by color deconvolution.” Analytical and quantitative cytology and histology 23.4 (2001): 291-299.

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

Examples

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

Initialize RuifrokNormalizer.

Methods