Resamples a volume to a new space with optional smoothing of parcel boundaries. This is particularly useful for atlas parcellations where maintaining discrete labels is important.
Arguments
- vol
A NeuroVol object to be resampled
- outspace
A NeuroSpace object specifying the target space
- smooth
Logical. Whether to apply boundary smoothing after resampling. Default: FALSE
- interp
Integer. Interpolation method (0=nearest neighbor, 1=linear). Default: 0
- radius
Numeric. Radius for smoothing neighborhood in voxels. If NULL, uses max(spacing)+0.5. Default: NULL
- min_neighbors
Integer. Minimum number of neighbors required for smoothing. Default: 3