View source: R/whiteMatterHyperintensitySegmentation.R
shivaPvsSegmentation | R Documentation |
Perform segmentation of perivascular (PVS) or Vircho-Robin spaces (VRS). https://pubmed.ncbi.nlm.nih.gov/34262443/ with the original implementation available here: https://github.com/pboutinaud/SHIVA_PVS
shivaPvsSegmentation(
t1,
flair = NULL,
whichModel = "all",
doPreprocessing = TRUE,
verbose = FALSE
)
t1 |
input 3-D T1-weighted brain image. |
flair |
(Optional) input 3-D FLAIR brain image (aligned to T1 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.