Combined fast preprocessing: removes volume mean offsets and linear trends in a single efficient operation.
Details
Combines normalize_volumes and detrend_time
in a single pass for efficiency. The operations are applied in order:
Remove volume-wise mean offset
Remove linear trend from each voxel's timeseries
Uses fast C++ parallel implementation via RcppParallel.
Examples
if (FALSE) { # \dontrun{
vec <- neuroim2::read_vec("functional.nii.gz")
vec_clean <- normalize_detrend(vec)
} # }