ReinhardParams#
- class squidpy.types.ReinhardParams[source]#
Tuning knobs for Reinhard stain normalization.
A
TypedDict: pass a plaindictwith 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’sreinhard, 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; ifFalse, use every pixel (vanilla Reinhard).Default:
True