4D separable spatiotemporal guided filter Spatial guided filtering is applied per-frame (3D). Optionally, a temporal guided step (1D per voxel) is applied with motion-aware frame weights.
st_guided_filter4d.Rd4D separable spatiotemporal guided filter Spatial guided filtering is applied per-frame (3D). Optionally, a temporal guided step (1D per voxel) is applied with motion-aware frame weights.
Usage
st_guided_filter4d(
vec,
radius_sp = 4L,
eps_sp = 0.7^2,
radius_t = 1L,
eps_t = 0.3^2,
guide_spatial = NULL,
guide_temporal = NULL,
motion_params = NULL,
sigma_m = 0.5,
mask = NULL
)Arguments
- vec
4D fMRI array or `NeuroVec`.
- radius_sp
Spatial filter radius (voxels).
- eps_sp
Spatial regularization (variance floor).
- radius_t
Temporal filter radius (frames).
- eps_t
Temporal regularization.
- guide_spatial
Optional 3D spatial guide.
- guide_temporal
Optional length-T temporal guide.
- motion_params
Optional T×(3 or 6) motion regressors; used to weight temporal guidance.
- sigma_m
Motion weight scale (frames).
- mask
Optional 3D logical/0-1 mask.