Connected components on discrete and continuous multilabel 3D & 2D images. Handles 26, 18, and 6 connected variants.
cc3d is an implementation of connected components in three dimensions using a 26, 18, or 6-connected neighborhood in 3D or 4 and 8-connected in 2D. This package uses a 3D variant of the two pass meth…