How can I convert a .dat file into a deformation field in .nii.gz format with dimensions [w, h, d, 3], matching the size of the input image? I noticed that the .dat file contains data with a resolution of [w/4, h/4, d/4]. Additionally, how can I visualize the resulting deformation field?
How can I convert a .dat file into a deformation field in .nii.gz format with dimensions [w, h, d, 3], matching the size of the input image? I noticed that the .dat file contains data with a resolution of [w/4, h/4, d/4]. Additionally, how can I visualize the resulting deformation field?