deepbleed: DeepBleed Model

Description Usage Arguments Value Note Examples

Description

DeepBleed Model

Usage

1
2
3
4
5
download_deepbleed_model(outdir = NULL)

load_deepbleed_model(outdir = NULL)

predict_deepbleed(image, mask = NULL, verbose = TRUE, ..., outdir = NULL)

Arguments

outdir

Output directory for 'DeepBleed' model

image

image to segment using 'DeepBleed' model

mask

brain mask image

verbose

print diagnostic messages

...

additional arguments to send to CT_Skull_Stripper_mask

Value

A list of the output images and predictions.

Note

https://github.com/muschellij2/deepbleed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
destfile = file.path(tempdir(), "01.tar.xz")
dl = download.file(
  "https://archive.data.jhu.edu/api/access/datafile/1311?gbrecs=true",
  destfile = destfile)
res = untar(tarfile = destfile, exdir = tempdir())
fname = file.path(tempdir(), "01", "BRAIN_1_Anonymized.nii.gz")
mask = file.path(tempdir(), "01", "BRAIN_1_Anonymized_Mask.nii.gz")
tdir = tempfile()
dir.create(tdir)
download_deepbleed_model(outdir = tdir)
mod = load_deepbleed_model(outdir = tdir)
predict_deepbleed(fname, mask = mask, outdir = tdir)

neuroconductor/ichseg documentation built on Sept. 29, 2020, 2:31 p.m.