mouseBrainExtraction: Mouse brain extraction

View source: R/mouse.R

mouseBrainExtractionR Documentation

Mouse brain extraction

Description

Perform brain extraction of mouse MRI

Usage

mouseBrainExtraction(
  image,
  modality = c("t2", "ex5coronal", "ex5sagittal"),
  returnIsotropicOutput = FALSE,
  whichAxis = 2,
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

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

modality

image type. Options include:

  • "t2": T2-weighted MRI

  • "ex5coronal": E13.5 and E15.5 mouse embroyonic histology data.

  • "ex5sagittal": E13.5 and E15.5 mouse embroyonic histology data.

returnIsotropicOutput

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

whichAxis

Specify direction for ex5 modalities..

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" )
probabilityMask <- mouseBrainExtraction( image, modality = "t2" )

## End(Not run)

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