allenHistologyBrainMask: Determine brain foreground of Allen's mouse embroyonic data.

View source: R/histology.R

allenHistologyBrainMaskR Documentation

Determine brain foreground of Allen's mouse embroyonic data.

Description

Determine brain foreground of Allen's mouse embroyonic data.

Usage

allenHistologyBrainMask(
  image,
  whichAxis = 3,
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

input image

whichAxis

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

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 <- allenHistologyBrainMask( image )

## End(Not run)

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