unravel.voxel_stats.mirror module
Use vstats_mirror
(mirror
) from UNRAVEL to load a *.nii.gz, flip a copy [and shift content], average original and copy together, and save as .nii.gz.
Usage:
vstats_mirror [-p ‘<asterisk>.nii.gz’] [-ax 2] [-s 0] [-v]
-
unravel.voxel_stats.mirror.parse_args()[source]
-
unravel.voxel_stats.mirror.mirror(img, axis=2, shift=0)[source]
Mirror an image along the specified axis and shift the content by the specified number of voxels.
- Parameters:
img (np.ndarray) – Image data to mirror
axis (int) – Axis to flip the image along. Default: 0
shift (int) – Number of voxels to shift content after flipping. Default: 2 (useful when the atlas is not centered)
-
unravel.voxel_stats.mirror.main()[source]