seung-lab / connected-components-3d

Connected components on discrete and continuous multilabel 3D & 2D images. Handles 26, 18, and 6 connected variants; periodic boundaries (4, 8, & 6)
GNU Lesser General Public License v3.0
356 stars 42 forks source link

feat: adds statistics function #76

Closed william-silversmith closed 2 years ago

william-silversmith commented 2 years ago

Resolves #75

stats = cc3d.statistics(out_labels)
stats["voxel_counts"]
stats["bounding_boxes"]
stats["centroids"]