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
367 stars 43 forks source link

perf: skip relabeling if all labels would exactly match existing #60

Closed william-silversmith closed 3 years ago

william-silversmith commented 3 years ago

Special case where there are specially shaped objects that are spatially disconnected so that zero excess provisional labels are allocated. In this case, skip relabeling for a reasonable performance improvement (~15%).