lungExtraction: Lung extraction

View source: R/lungExtraction.R

lungExtractionR Documentation

Lung extraction

Description

Perform lung extraction.

Usage

lungExtraction(
  image,
  modality = c("proton", "protonLobes", "maskLobes", "ct", "ventilation", "xray"),
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

image

input 3-D lung image.

modality

image type. Options include "proton", "ct", or "ventilation".

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( "lung.nii.gz" )
output <- lungExtraction( image, modality = "proton" )

## End(Not run)

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