Description Usage Arguments Value Examples
View source: R/dramms_with_ravens.R
Runs DRAMMS on source and target
1 2 3 4 5 6 7 8 9 10 11 12 |
source |
Filename (or nifti) to match to target |
target |
Filename (or nifti) to match source to to target |
outfile |
Output filename |
outdef |
output deformation field (it will be in template to subject space) |
retimg |
return nifti object versus output image |
opts |
Extra arguments to pass to |
label |
label image in subject space. Note that the label image must be in uint8 (aka byte, or uchar) datatype. |
labs |
vector of values of the labels in an image. If not
specified, will use all labels from |
ravens_prefix |
prefix for all RAVENS maps. |
verbose |
(logical) print out command before running |
If retimg = TRUE
, a list of nifti
objects consisting
of the RAVENS images, the output file (template to subject space), and
output deformation field (template to subject space).
If retimg = FALSE
, a list of the filenames of the output image.
1 2 3 4 5 6 7 8 9 | ## Not run:
require(fslr)
temp = file.path(fsldir(), "data", "standard", "MNI152_T1_1mm.nii.gz")
# get file
# https://github.com/muschellij2/FSLR_Data/raw/master/01-Baseline_T1.nii.gz
brain = file.path(fsldir(), "data", "standard", "MNI152_T1_1mm_brain.nii.gz")
res = dramms(source = brain, target = temp, retimg = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.