allenEx5BrainExtraction: Perform brain extraction of Allen's E13.5 and E15.5 mouse...

View source: R/histology.R

allenEx5BrainExtractionR Documentation

Perform brain extraction of Allen's E13.5 and E15.5 mouse embroyonic data.

Description

Perform brain extraction of Allen's E13.5 and E15.5 mouse embroyonic data.

Usage

allenEx5BrainExtraction(
  image,
  view = c("coronal", "sagittal"),
  whichAxis = 3,
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

input image

view

Two trained networks are available: "coronal" or "sagittal".

whichAxis

If 3-D image, which_axis specifies the direction of the "view".

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

segmentation and probability images

Author(s)

Tustison NJ

Examples

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

image <- antsImageRead( "image.nii.gz" )
output <- allenEx5BrainExtraction( image )

## End(Not run)

ANTsX/ANTsRNet documentation built on April 23, 2024, 1:24 p.m.