reslice#

qx_utilities.general.nifti.reslice(inf, slices, outf=None)#

reslice inf=<input_image> slices=<slices_per_volume> [outf=<output_image>]

Remove extra slices for interrupted BOLD sequences.

Parameters

--inf (str):

Input image filename to be reordered.

--slices (int):

Number of slices per volume.

--outf (str):

Output image filename. If not provided, it replaces the original file.

Notes

Removes extra slices for interrupted BOLD sequences and creates an image with good frames with data in xyzf order.

Warning

It assumes ascending interpolated acquisition of slices!

Examples

qunex reslice 07.nii.gz 48