lungAirwaySegmentation: Lung airway segmentation.

View source: R/lungSegmentation.R

lungAirwaySegmentationR Documentation

Lung airway segmentation.

Description

Perform pulmonary artery segmentation. Training data taken from the EXACT09 challenge (Lo, Pechin, et al. "Extraction of airways from CT (EXACT'09)." https://pubmed.ncbi.nlm.nih.gov/22855226/)

Usage

lungAirwaySegmentation(
  ct,
  lungMask = NULL,
  predictionBatchSize = 16,
  patchStrideLength = 32,
  antsxnetCacheDirectory = NULL,
  verbose = FALSE
)

Arguments

ct

input 3-D ct image.

lungMask

input binary lung mask which defines the patch extraction (label 1 = left lung, label 2 = right lung, label 3 = main airway). If not supplied, one is estimated.

predictionBatchSize

Control memory usage for prediction. More consequential for GPU-usage.

patchStrideLength

3-D vector or int. Dictates the stride length for accumulating predicting patches.

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 inst/extdata/ subfolder of the ANTsRNet package.

verbose

print progress.

Value

Probability image.

Author(s)

Tustison NJ

Examples

## Not run: 
library( ANTsRNet )
library( keras )


## End(Not run)

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