Create a voxel space from a NIfTI file
Usage
space_from_nifti(path, mask = NULL)
Arguments
- path
Path to a NIfTI file (.nii or .nii.gz)
- mask
Optional path to a mask NIfTI or a neuroim2::NeuroVol
Value
A space_voxel object
Examples
# if (requireNamespace("neuroim2", quietly = TRUE)) {
# sp <- space_from_nifti(system.file("extdata", "tiny.nii", package = "fmrigds"))
# }