Skip to main content

Module positive_od_threshold

Module positive_od_threshold 

Source
Expand description

Optical-density threshold for positive cell fraction (Ki-67 style index).

Brightfield gray → approximate optical density (Beer–Lambert), then count labeled nuclei whose mean OD exceeds a threshold. Returns a fixed-point positive fraction for the index.

Structs§

OdPositiveIndex
Result of a positive-OD index computation.

Constants§

MAX_OD_LABELS
Maximum distinct nucleus labels for OD aggregation.

Functions§

intensity_to_od_u8
Map brightfield intensity to an 8-bit optical-density-like value.
positive_od_threshold
Compute Ki-67-style positive index from a gray channel and nucleus label map.