Skip to main content

Module nucleus_features

Module nucleus_features 

Source
Expand description

Per-label nucleus geometry: area, circularity, axis ratio (PCA of region points).

Caller supplies a label map (u16, 0 = background) and a fixed NucleusFeature output array. Returns the number of distinct non-zero labels written (capped by out.len() and MAX_NUCLEUS_LABELS).

Structs§

NucleusFeature
Fixed-layout region feature (no heap).

Constants§

MAX_NUCLEUS_LABELS
Maximum distinct labels tracked in one pass (stack/table bound).

Functions§

nucleus_features
Extract geometric features for each labeled nucleus region.