mask_indices: Get Mask Indices

Description Usage Arguments Value Examples

View source: R/mask_indices.R

Description

Get Mask Indices

Usage

1
mask_indices(mask, seed = NULL, verbose = TRUE)

Arguments

mask

binary 3D array or nifti image

seed

Seed for random sampling of indices. If NULL, no sampling is done

verbose

print diagnostic messages

Value

A 3xV matrix with V number of patches

Examples

1
2
3
dims = rep(10,3)
mask = array(rbinom(prod(dims), size = 1, prob = 0.2),
dim = dims)

neuroconductor/flexconn documentation built on Sept. 25, 2020, 10:51 a.m.