Learn R Programming

neuroim (version 0.0.6)

connComp3D: Extract connected components from a 3D mask

Description

Extract connected components from a 3D mask

Usage

connComp3D(mask)

Arguments

mask
a 3D binary array

Value

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.