Perform lung extraction.
lungExtraction( image, modality = c("proton", "protonLobes", "maskLobes", "ct", "ventilation", "xray"), antsxnetCacheDirectory = NULL, verbose = FALSE )
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
|
verbose | print progress. |
segmentation and probability images
Tustison NJ
if (FALSE) { library( ANTsRNet ) library( keras ) image <- antsImageRead( "lung.nii.gz" ) output <- lungExtraction( image, modality = "proton" ) }