mattiaspaul / deedsBCV

new and more efficient version for 3D discrete deformable registration, reaching the highest accuracy in several benchmarks
MIT License
102 stars 32 forks source link

Converting a .dat File to a Deformation Field in .nii.gz Format with Visualization #17

Open yuanpengpeng opened 1 week ago

yuanpengpeng commented 1 week ago

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?