nifreeze.analysis.motion module¶
Motion analysis.
- nifreeze.analysis.motion.compute_percentage_change(reference: ndarray, test: ndarray, mask: ndarray) ndarray[source]¶
Compute motion change between reference and test as a percentage.
If a mask is provided, the computation is only provided within the mask. Also, null values are ignored.
- nifreeze.analysis.motion.identify_spikes(fd: ndarray, threshold: float = 2.0) Tuple[ndarray, ndarray][source]¶
Identify motion spikes in framewise displacement data.
Identifies high-motion frames as timepoint exceeding a given threshold value based on z-score normalized framewise displacement (FD) values.