wholeHeadInpainting: wholeHeadInpainting

View source: R/inpainting.R

wholeHeadInpaintingR Documentation

wholeHeadInpainting

Description

Perform in-painting for whole-head MRI

Usage

wholeHeadInpainting(
  image,
  roiMask,
  modality = "t1",
  mode = "axial",
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

input 3-D MR image.

roiMask

binary mask image

modality

Modality image type. Options include: "t1": T1-weighted MRI, "flair": FLAIR MRI.

mode

Options include: "sagittal": sagittal view network, "coronal": coronal view network, "axial": axial view network, "average": average of all canonical views, "meg": morphological erosion, greedy, iterative.

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

inpainted image

Author(s)

Tustison NJ


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