Expand description
Native pure-Rust morphology / cell-detection kernels.
Single-function files; uses cv::morph erode/dilate for top-hat.
No Python / OpenCV.
Modules§
- extended_
minima - H-minima / extended minima on Gray8 (suppress shallow minima).
- morphological_
tophat - White / black morphological top-hat via existing 3×3 erode / dilate.
- nucleus_
features - Per-label nucleus geometry: area, circularity, axis ratio (PCA of region points).
- positive_
od_ threshold - Optical-density threshold for positive cell fraction (Ki-67 style index).
- voronoi_
otsu_ label - Voronoi–Otsu labeling (lite): Otsu threshold → distance peaks → watershed split.
- watershed_
markers - Marker-controlled watershed flooding on a gray topographic surface.
Structs§
- Nucleus
Feature - Fixed-layout region feature (no heap).
- OdPositive
Index - Result of a positive-OD index computation.
Enums§
- TopHat
Kind - Top-hat polarity.
Constants§
- MAX_
NUCLEUS_ LABELS - Maximum distinct labels tracked in one pass (stack/table bound).
- MAX_
OD_ LABELS - Maximum distinct nucleus labels for OD aggregation.
Functions§
- extended_
minima - Compute extended minima of a gray topographic surface.
- intensity_
to_ od_ u8 - Map brightfield intensity to an 8-bit optical-density-like value.
- morphological_
tophat - Morphological top-hat into caller buffer (
width * heightbytes). - nucleus_
features - Extract geometric features for each labeled nucleus region.
- otsu_
threshold_ from_ hist - Otsu threshold for a Gray8 histogram (returns 0 if image empty / single-tone).
- positive_
od_ threshold - Compute Ki-67-style positive index from a gray channel and nucleus label map.
- voronoi_
otsu_ label - Voronoi–Otsu label map: split touching bright objects.
- watershed_
markers - Marker-controlled watershed.