extract-connected-components <input> <output> [options]
Extracts connected components from input segmentation label image. By default, the largest connected component is extracted. In case of extract-connected-components -output-component-labels, the labels of the components are written instead.
Zero-based index of first connected component to extract. (default: 0)
Extract (at most) n components. (default: 1)
Extract all components.
Type of voxel connectivity (4, 6, 18, or 26). (default: 26)
Ordering of connected component labels based on component size:
Write component labels instead of input labels.
Write binary mask with non-zero value at extracted components.
Increase/Set verbosity of output messages. (default: 0)
Increase/Set debug level for output of intermediate results. (default: 0)
Print version and exit or set version to emulate.
Print revision (or version) number only and exit.
Print help and exit.