This repository contains the following functions for connected component analysis of 2D/3D segmentation data:
-
keep_largest_connected_component
-
count_connected_component
-
label_connected_component
-
Clone/download repository.
-
Change directory into repository.
-
Install:
pip install .
-
Function imports.
-
Command line:
connected_component --input_dir .\sample_data\0_sample_seg --output_dir .\sample_data\1_output --count_cc --keep_largest_cc