threshold#

external(array[, threshold, min_volume, ...])

Identifies the largest connected component in a 3D array (e.g., CT/MRI volume) above or below a threshold, optionally returning its mask, centroid positions per slice, number of external components per slice, and bounding box.