Skip to main content

positive_od_threshold

Function positive_od_threshold 

Source
pub fn positive_od_threshold(
    gray: GrayView<'_>,
    labels: &[u16],
    od_thresh_u8: u8,
    out: &mut OdPositiveIndex,
) -> Result<(), CvError>
Expand description

Compute Ki-67-style positive index from a gray channel and nucleus label map.

  • gray: brightfield luminance (bright = background).
  • labels: same geometry, 0 = background; non-zero = nucleus id.
  • od_thresh_u8: mean-OD threshold on the 0–255 OD scale.