Hello everyone,
I’m attempting to use the fslcreatehd
command within FSL. The following commands work as expected, generating the desired output files:
Copy code
fslcreatehd 50 50 50 1 1 1 1 0 0 0 0 4 test_large_image.nii.gz
fslcreatehd 100 100 100 1 1 1 1 0 0 0 0 4 test_large_image.nii.gz
fslcreatehd 120 120 129 1 1 1 1 0 0 0 0 4 test_large_image.nii.gz
However, I encounter an issue with the following command:
Copy code
fslcreatehd 128 128 19 1 1.796875 1.796875 6.5 0 0 0 4 test_large_image.nii.gz
It provides the following usage information:
phpCopy code
[curtsohn@comic2 nifty_reg]$ fslcreatehd 128 128 19 1 1.796875 1.796875 6.5 0 0 0 4 test_large_image.nii.gz
Usage: fslcreatehd <xsize> <ysize> <zsize> <tsize> <xvoxsize> <yvoxsize> <zvoxsize> <tr> <xorigin> <yorigin> <zorigin> <datatype> <headername>
fslcreatehd <nifti_xml_file> <headername>
Datatype values: 2=char, 4=short, 8=int, 16=float, 64=double
In the first form, a radiological image will be created, with the origin input as a voxel co-ordinate.
If the output file already exists, its data (but not geometric information) will be copied if it has a matching number of elements.
In the second form, an XML-ish form of nifti header is read (as output by fslhd -x).
Note that stdin is used if '-' is used in place of a filename.
Despite adhering to the correct format, I’m unsure why the image isn’t being created. Any insights would be appreciated.