Label a binary image with connected components

label_mask(img, k = 1)

Arguments

img

Object of class nifti or array

k

Minimum number of voxels for a cluster/component.

Value

Object of class nifti