cellcoloc.segment_optional_region

cellcoloc.segment_optional_region(image_zyx, roi_labels_2d, config)[source]

Threshold an optional third channel and compute a cleaned 3D mask.

The function keeps the old prototype behavior while avoiding the deprecated scikit-image arguments by mapping strict minimum thresholds to the new inclusive max_size semantics.

Return type:

OptionalRegionSegmentationResult