View source: R/whiteMatterHyperintensitySegmentation.R
shivaWmhSegmentation | R Documentation |
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
shivaWmhSegmentation(
flair,
t1 = NULL,
whichModel = "all",
doPreprocessing = TRUE,
verbose = FALSE
)
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. |
probabilistic image.
Tustison NJ
## Not run:
library( ANTsRNet )
library( keras )
t1 <- antsImageRead( "t1.nii.gz" )
flair <- antsImageRead( "flair.nii.gz" )
results <- wmhSegmentation( t1, flair )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.