Description Usage Arguments Value Examples
Extract connected components from a 3D mask
1 | connComp3D(mask, connect = c("6-connect", "18-connect", "26-connect"))
|
mask |
a 3D binary array |
connect |
the connectiivty constraint: "6-connect", "18-connect", or "26-connect" |
a two-element list of the connected components (cluster index
and cluster size
)
The first element index
is a 3D array containing the cluster index of the connected component for each voxel.
The second element size
is a 3D array consisting of the size of the connected component inhabited by each voxel.
1 2 3 4 | dat <- array(as.logical(rnorm(10*10*10)>.5), c(10, 10, 10))
res1 <- connComp3D(dat, connect="6-connect")
res2 <- connComp3D(dat, connect="18-connect")
res3 <- connComp3D(dat, connect="26-connect")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.