MP-PCA denoising (local patches × time) for 4D fMRI
mp_pca4d.RdPerforms local PCA denoising in overlapping 3D spatial patches across a temporal window.
Arguments
- vec
4D fMRI array or `NeuroVec`.
- patch
Integer length-3 patch size (voxels).
- tw
Temporal window size (frames).
- stride
Integer length-4 stride for x,y,z,t.
- sigma_mode
Noise mode: 'patch' (estimate per-patch), 'global' (one value), or 'fixed'.
- sigma_value
Noise sigma when `sigma_mode='fixed'`.
- mask
Optional 3D logical/0-1 mask.