centralveins | R Documentation |
This function obtains the probability that each lesion in a subject's deep white-matter has a central vein.
centralveins(epi, t1, flair, probmap = NULL, binmap = NULL, parallel = F, cores = 2, skullstripped = F, biascorrected = F, c3d = F)
epi |
a T2*-EPI volume of class |
t1 |
a T1-weighted volume of class |
flair |
a T2-FLAIR volume of class |
probmap |
an image of class |
binmap |
a |
parallel |
is a logical value that indicates whether the user's computer is Linux or Unix (i.e. macOS), and should run the code in parallel. |
cores |
if parallel = TRUE, cores is an integer value that indicates how many cores the function should be run on. |
skullstripped |
a logical value reflecting whether or not the images have already been skull-stripped. |
biascorrected |
a logical value reflecting whether or not the images have already been bias-corrected. |
c3d |
a logical value reflecting whether or not the Convert3D imaging toolbox is installed. |
A list containing candidate.lesions (a nifti file with labeled lesions evaluated for CVS), cvs.probmap (a nifti file in which candidate lesions are labeled with their CVS probability), and cvs.biomarker (a numeric value representing the average CVS probability of a subject's lesions).
## Not run: library(neurobase) epi <- readnii('path/to/epi') flair <- readnii('path/to/flair') t1 <- readnii('path/to/t1') cvs <- centralveins(epi = epi, t1 = t1, flair = flair parallel = TRUE, cores = 4, c3d = T) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.