squidpy.experimental.im.ReinhardParams

class squidpy.experimental.im.ReinhardParams(luminosity_threshold=0.8, mask_background=True)[source]

Tuning knobs for Reinhard stain normalization.

Pass an instance (or a Mapping of field names to values) as method_params. Frozen so validation in __post_init__ cannot be silently bypassed by later mutation.

Methods

Attributes

luminosity_threshold

Normalised Ruderman Lab-L cutoff in (0, 1]; pixels brighter than this are excluded from the fit.

mask_background

If True, fit channel statistics over tissue pixels only; if False, use every pixel (vanilla Reinhard).