Intersection of a list of brain masks.
maskIntersect(
list,
output.file = NULL,
prob = 1,
reorient = FALSE,
returnObject = TRUE,
writeToDisk = TRUE,
verbose = TRUE
)List of the mask input files (nifti files) or mask nifti objects.
Optional filename for the output image.
Probability of intersection. Ex: 0.9 will return a mask for voxels that intersect 90% of the time.
Should the input images be reoriented? FALSE by default.
Should a nifti object be returned?
Should the intersection mask be saved to the disk?
Should messages be printed?
If returnObject is TRUE, a nifti object is
returned, and if writeToDisk is TRUE, the intersection mask is
saved to disk as a NIfTI file.
if (require(EveTemplate)){
path1 <- path2 <- getEvePath()
inter <- maskIntersect(list(path1,path2), writeToDisk=FALSE)
}
#> Loading required package: EveTemplate
#> Loading required package: oro.nifti
#> oro.nifti 0.11.5