You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
get_largest_connected_component_mask materializes redundant nonzero index arrays before bincount #8974
lib.nonzero(features) materializes one full index array per spatial dim, and features[...] gathers a full copy of every non-background voxel, just to drop background before bincount. That is unnecessary: bincount over the whole field already counts every label, and background is index 0.
Activity
Perf: faster get_largest_connected_component_mask (bincount + LUT gat…