Skip to content

Instantly share code, notes, and snippets.

@ilkayisik
Created October 11, 2019 10:36
Show Gist options
  • Save ilkayisik/68fed7f07fd6e463b75c8193a1470e70 to your computer and use it in GitHub Desktop.
Save ilkayisik/68fed7f07fd6e463b75c8193a1470e70 to your computer and use it in GitHub Desktop.
use convert 3D to reslice a 2mm input to be 1mm
root='/Users/ilkay.isik/project_folder_temp/fc_content/MRI_data/lscp_data/derivatives'
input=path/to/2mm_input.nii
output=path_to_1mm_output.nii
ref=path_to_1mm_ref.nii
c3d ${ref} ${input} -int 0 -reslice-identity -o ${output}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment