Description Usage Arguments Value Note Examples
DeepBleed Model
1 2 3 4 5 | download_deepbleed_model(outdir = NULL)
load_deepbleed_model(outdir = NULL)
predict_deepbleed(image, mask = NULL, verbose = TRUE, ..., outdir = NULL)
|
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
|
A list of the output images and predictions.
https://github.com/muschellij2/deepbleed
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.