Description Usage Arguments Details Value Author(s) Examples
View source: R/functionalLungSegmentation.R
Lung segmentation into classes based on ventilation as described in this paper:
1 2 3 4 5 6 7 8 9 10 11 | functionalLungSegmentation(
image,
mask,
numberOfIterations = 2,
numberOfAtroposIterations = 5,
mrfParameters = "[0.7,2x2x2]",
numberOfClusters = 6,
clusterCenters = NA,
biasCorrection = "n4",
verbose = TRUE
)
|
image |
input proton-weighted MRI. |
mask |
mask image designating the region to segment. 0/1 = background/foreground. |
numberOfIterations |
number of Atropos <–> bias correction iterations (outer loop). |
numberOfAtroposIterations |
number of Atropos iterations (inner loop).
If |
mrfParameters |
parameters for MRF in Atropos. |
numberOfClusters |
number of tissue classes (default = 4) |
clusterCenters |
initialization centers for k-means |
biasCorrection |
apply n3, n4, or no bias correction (default = "n4"). |
verbose |
print progress to the screen. |
https://pubmed.ncbi.nlm.nih.gov/21837781/
segmentation image, probability images, and processed input image.
Tustison NJ
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library( ANTsR )
image <- antsImageRead( "lung.nii.gz" )
mask <- antsImageRead( "mask.nii.gz" )
output <- functionalLungSegmentation( image, mask )
antsImageWrite( output$segmentationImage, "outputSegmentation.nii.gz" )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.