Perform lung extraction.

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

Tustison NJ

Examples

if (FALSE) { library( ANTsRNet ) library( keras ) image <- antsImageRead( "lung.nii.gz" ) output <- lungExtraction( image, modality = "proton" ) }