External Email - Use Caution
You might be able to convert it to a nifti (eg, with mri_warp_convert
--outfsl), do your optionations, then convert it back to m3z
On 6/14/2023 4:08 PM, Proulx, Jean Sebastien wrote:
External Email - Use Caution
Hello,
I produced an m3z warp file with mri_gradunwarp.
Now I need to 0 out all displacement in the z direction, while keeping
everything else the same since I need to combine multiple warps from
images with different geometries.
I see two strategies:
(1) working directly on the m3z file
I could not get mri_convert or mris_calc to do the trick. I thought I
nailed it by manually editing the m3z file in freeview, but freeview
saves the results in mgz format :-( Is there anything else I missed?
(2) converting to mgz or nii timeseries, manupulate those and convert
back to m3z
mri_convert produced a nii file that freeview could not read and a
single-frame mgz file that looks like some mishmash of the original
3-frame m3z.
Any idea on how I can acheive my goal?
A word on why would I want to do this silly thing. I have single-slice
EPI and fov-matched higher-inplane-resolution single-slice GRE images.
They have different within-slice gradient-non-linearity-related
distortions. I want to undistort the GRE image then distort it to the
EPI space. I need to zero out through-plane distortions to avoid
displacing signal outside the imaging grid. Ignoring through-plane
distortions should not be a problem for overlaying my GRE and EPI
since, unlike within-plane distorsions, through-plane distortions are
matched.
Thanks a lot for the help and
Have a very good day!
Sebastien
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/19DISE_M3EUAQCb0Su0WBCvsncgzoqKbaWLxgBnc_9TWTTDDgSIFaEBSMIlPr7PdjQ766QOXOKzJHlJEA4RP4g6NNFPo2_vT_8UBMpqAhcerMS9VPD0m76i5-vgusN4SvYC66Ro5qELsvMVyEZ78_nZlshm7IALlpW7xrwAk7xR7lDWjDkO6j8fWZ5H0DJsBrKVpod0T7Em7tn4CTq_zbKH7UqK6PHhUXtv_H4sEUQOtsdx4jnkgd8ZXOHkO5FTxOM7xKBnd8k4EpCvcH100OXQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Mass General Brigham
Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline
<https://www.massgeneralbrigham.org/complianceline> .
Please note that this e-mail is not secure (encrypted). If you do not wish to
continue communication over unencrypted e-mail, please notify the sender of
this message immediately. Continuing to send or respond to e-mail after
receiving this message means you understand and accept this risk and wish to
continue to communicate over unencrypted e-mail.