Perform T1, FA, or bold brain extraction using a U-net architecture training data. "NoBrainer" is also possible where brain extraction uses U-net and FreeSurfer training data ported from the
brainExtraction( image, modality = c("t1", "t1.v0", "t1.v1", "t1nobrainer", "t1combined", "t2", "t2.v0", "t2star", "flair", "flair.v0", "bold", "bold.v0", "fa", "fa.v0", "t1t2infant", "t1infant", "t2infant"), antsxnetCacheDirectory = NULL, verbose = FALSE )
image | input 3-D brain image (or list of images for multi-modal scenarios). |
---|---|
modality | image type. Options include:
|
antsxnetCacheDirectory | destination directory for storing the downloaded
template and model weights. Since these can be resused, if
|
verbose | print progress. |
brain probability mask (ANTsR image)
https://github.com/neuronets/nobrainer-models
Tustison NJ
if (FALSE) { library( ANTsRNet ) library( keras ) image <- antsImageRead( "t1w_image.nii.gz" ) probabilityMask <- brainExtraction( image, modality = "t1" ) }