Hi MRtrix Development Team,
I hope this message finds you well.
I am currently working on straightening spinal cord FOD data using a warp image derived from another contrast e.g b0 that was not generated with MRtrix. However, I encountered an issue with the following error message: “The input warp image must have 3 volumes (x, y, z) in the 4th dimension.”
s4333238@cai-wks5:/90days/s4333238/mrtransform_test$ mrtransform 3392_fod_00_RPI_flip_y.nii.gz -template straight_ref.nii.gz fod_reg.mif -reorient_fod yes -warp_full warp_straight2curve.nii.gz -force
mrtransform: [WARNING] existing output files will be overwritten
mrtransform: [WARNING] warp_full image is not in original .mif/.mih file format or in NIfTI file format with associated JSON. Converting to other file formats may remove linear transformations stored in the image header.
mrtransform: [100%] uncompressing image "warp_straight2curve.nii.gz"
mrtransform: [100%] preloading data for "warp_straight2curve.nii.gz"
mrtransform: [ERROR] the input warp image must have 3 volumes (x,y,z) in the 4th dimension.
s4333238@cai-wks5:/90days/s4333238/mrtransform_test$
Could you please confirm whether my approach using the mrtransform
command is correct? Additionally, I would greatly appreciate any suggestions or recommendations to address this issue.
I have included all relevant header information for my input files with the mrtransform
command below for your reference.
input fod header
Image name: "3392_fod_00_RPI_flip_y.nii.gz"
Dimensions: 256 x 256 x 1024
Voxel size: 0.078125 x 0.078125 x 0.078125
Data strides: [ -1 2 3 ]
Format: NIfTI-1.1 (GZip compressed)
Data type: 32 bit float (little endian)
Intensity scaling: offset = 0, multiplier = 1
Transform: 1 0 0 -9.8
-0 1 0 -16.92
-0 0 1 -39.92
comments: 2203.12-dirty 2024-02-01T16:17:47+00:00
template/reference header info
Image name: "straight_ref.nii.gz"
************************************************
Dimensions: 127 x 127 x 517
Voxel size: 0.15625 x 0.15625 x 0.15625
Data strides: [ -1 2 3 ]
Format: NIfTI-1.1 (GZip compressed)
Data type: 64 bit float (little endian)
Intensity scaling: offset = 0, multiplier = 1
Transform: 1 0 0 -9.644
-0 1 0 -16.84
-0 0 1 -40.47
warp header info
Image name: "warp_straight2curve.nii.gz"
************************************************
Dimensions: 256 x 256 x 1040 x 1 x 3
Voxel size: 0.078125 x 0.078125 x 0.078125 x 1 x 1
Data strides: [ -1 2 3 5 4 ]
Format: NIfTI-1.1 (GZip compressed)
Data type: 32 bit float (little endian)
Intensity scaling: offset = 0, multiplier = 1
Transform: 1 0 0 -9.8
-0 1 0 -16.92
-0 0 1 -40.55
Thank you so much for your invaluable feedback, continued support, and guidance. I look forward to hearing your thoughts.
Cheers,
Ibrahim