count_connected_components#
- rlemasklib.RLEMask.count_connected_components(connectivity=4, min_size=1)[source][C source]#
Count connected components without extracting them.
This is the fastest way to count components when you don’t need the actual masks or statistics.