| cluster_fast_label | R Documentation |
Label connected components of a logical matrix using four-connectivity.
cluster_fast_label(mask)
mask |
logical matrix |
Implemented by run-length encoding each row and then joining runs that overlap in adjacent rows, rather than visiting every cell. The number of runs is typically orders of magnitude smaller than the number of cells, which matters because cluster-extent inference has to repeat this for every permutation.
a list with the integer label matrix and the number of clusters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.