blur_mask: Blur Mask and Get Indices for Patches

Description Usage Arguments Value Examples

View source: R/blur_mask.R

Description

Blur Mask and Get Indices for Patches

Usage

1
blur_mask(mask)

Arguments

mask

binary 3D array or nifti image

Value

The blurred mask

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
user = Sys.getenv("USER")
if (user %in% c("johnmuschelli", "travis") &
Sys.info()["sysname"] == "Darwin"){
reticulate::use_python(paste0(
"/Library/Frameworks/Python.framework/Versions/3.5/bin/python3"))
} else {
python = system("which python", intern = TRUE)
print(python)
reticulate::use_python(python)
}
dims = rep(10, 3)
n = prod(dims)
mask = rbinom(n, size = 1, prob = 0.85)
mask = array(mask, dim = dims)
res = blur_mask(mask)

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