itasc.cellpose¶
Cellpose stage + standalone segment/track tool.
Two roles share this package:
Integrated app — the local Cellpose-SAM runner (
cellpose_runner) and the divergence-derived foreground/contour maps (build_divergence_maps) that the orchestrator’s in-app stage produces for nucleus tracking (itasc-tracking) and cell segmentation.Standalone ``itasc-cellpose`` tool —
native_maskscaptures the Cellpose native masks the runner otherwise discards, andtrack_laptracklinks them across time, giving a self-contained “segment then track” product.
The Cellpose model is the optional [cellpose] extra and laptrack is the
[laptrack] extra; both are imported lazily, so importing this package does
not require either.
- class itasc.cellpose.DivergenceMapsReport(frames, foreground_z_reduction, contour_z_reduction, smoothing_sigma, median_radius, contours_path, foreground_path, foreground_smoothing_sigma=0.0, foreground_median_radius=0)[source]¶
Bases:
objectSummary returned by
build_divergence_maps().- Parameters:
- itasc.cellpose.build_divergence_maps(prob_path, dp_path, contours_out, foreground_out, *, foreground_z_reduction, contour_z_reduction, smoothing_sigma, median_radius, foreground_smoothing_sigma=0.0, foreground_median_radius=0, progress_cb=None, cancel=None)[source]¶
Compute and write
contoursandforegroundfrom Cellpose prob/dp.Output stacks are
T x Y x Xfloat32.progress_cbis called for each foreground frame, contour z-slice, and output write.smoothing_sigma/median_radiusfilter the flow before divergence (contours); theforeground_*knobs filter the reduced foreground map independently.
Submodules
Local Cellpose-SAM runner, Qt-free, used by the napari Cellpose widget. |
|
Divergence-based foreground & contour maps from Cellpose prob/dp outputs. |
|
Flow-following cell segmentation, Qt-free, for the standalone distro. |
|
Joint nucleus-anchored cell segmentation + tracking, Qt-free. |
|
Capture Cellpose-SAM native masks, Qt-free, for the standalone distro. |
|
DB-free greedy retracker for the standalone segment + track corrector. |
|
Layout-free input canonicalisation for the standalone tool. |
|
Link per-frame native masks across time with laptrack, Qt-free. |