ReinhardParams

ReinhardParams#

class squidpy.types.ReinhardParams[source]#

Tuning knobs for Reinhard stain normalization.

A TypedDict: pass a plain dict with any subset of these keys.

luminosity_threshold: NotRequired[float]#

Normalised Ruderman Lab-L cutoff in (0, 1]; pixels brighter than this are treated as near-white background and excluded from the fit. Follows HistomicsTK’s reinhard, so thresholds from the H&E literature transfer directly.

Default: 0.8

mask_background: NotRequired[bool]#

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

Default: True