Converts a series selector specification into actual voxel indices within the dataset mask.
Details
Series selectors provide various ways to specify spatial subsets of fMRI data. This generic function resolves these specifications into actual indices that can be used to extract data. Different selector types support different selection methods:
index_selector: Direct indices into masked datavoxel_selector: 3D coordinatesroi_selector: Region of interest maskssphere_selector: Spherical regions
See also
series_selector for selector types,
fmri_series for using selectors to extract data
Examples
# \donttest{
# Example with index selector
sel <- index_selector(1:10)
# indices <- resolve_indices(sel, dataset)
# Example with voxel coordinates
sel <- voxel_selector(cbind(x = 10, y = 20, z = 15))
# indices <- resolve_indices(sel, dataset)
# }