shivaWmhSegmentation: SHIVA WMH segmentation.

View source: R/whiteMatterHyperintensitySegmentation.R

shivaWmhSegmentationR Documentation

SHIVA WMH segmentation.

Description

Perform segmentation of white matter hyperintensities. https://pubmed.ncbi.nlm.nih.gov/38050769/ with the original implementation available here: https://github.com/pboutinaud/SHIVA_WMH

Usage

shivaWmhSegmentation(
  flair,
  t1 = NULL,
  whichModel = "all",
  doPreprocessing = TRUE,
  verbose = FALSE
)

Arguments

flair

input 3-D FLAIR brain image.

t1

(Optional) input 3-D T1-weighted brain image (aligned to FLAIR image).

whichModel

integer or string. Several models were trained for the case of T1-only or T1/FLAIR image pairs. One can use a specific single trained model or the average of the entire ensemble. I.e., options are: * For T1-only: 0, 1, 2, 3, 4, 5. * For T1/FLAIR: 0, 1, 2, 3, 4. * Or "all" for using the entire ensemble.

doPreprocessing

perform n4 bias correction, intensity truncation, brain extraction.

verbose

print progress.

Value

probabilistic image.

Author(s)

Tustison NJ

Examples

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

t1 <- antsImageRead( "t1.nii.gz" )
flair <- antsImageRead( "flair.nii.gz" )
results <- wmhSegmentation( t1, flair )

## End(Not run)

ANTsX/ANTsRNet documentation built on Nov. 21, 2024, 4:07 a.m.