mouseBrainParcellation: Mouse brain parcellation

View source: R/mouse.R

mouseBrainParcellationR Documentation

Mouse brain parcellation

Description

Perform brain extraction of mouse T2 MRI

Usage

mouseBrainParcellation(
  image,
  mask = NULL,
  returnIsotropicOutput = FALSE,
  whichParcellation = c("nick"),
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

input 3-D brain image (or list of images for multi-modal scenarios).

mask

Brain mask. If not specified, one is estimated using ANTsXNet mouse brain extraction.

returnIsotropicOutput

The network actually learns an interpolating function specific to the mouse brain. Setting this to true, the output images are returned isotropically resampled.

whichParcellation

Brain parcellation type:

  • "nick":

    • Label 0:background

    • Label 1:CSF

    • Label 2:gray matter

    • Label 3:white matter

    • Label 4:deep gray matter

    • Label 5:brain stem

    • Label 6:cerebellum

antsxnetCacheDirectory

destination directory for storing the downloaded template and model weights. Since these can be resused, if is.null(antsxnetCacheDirectory), these data will be downloaded to the subdirectory ~/.keras/ANTsXNet/.

verbose

print progress.

Value

brain probability mask

Author(s)

Tustison NJ

Examples

## Not run: 
library( ANTsRNet )
library( keras )

image <- antsImageRead( "brain.nii.gz" )
parcellation <- mouseBrainParcellation( image, modality = "t2" )

## End(Not run)

ANTsX/ANTsRNet documentation built on April 28, 2024, 12:16 p.m.