Skip to content

Instantly share code, notes, and snippets.

@stowler
Created April 23, 2013 16:32
Show Gist options
  • Save stowler/5445189 to your computer and use it in GitHub Desktop.
Save stowler/5445189 to your computer and use it in GitHub Desktop.
PiB voxel size conflict: FSL and AFNI read as 2x2x2 mm voxels due to header's s-form (despite header's pixdim values of 1.2x1.2x1.2 mm)
$ 3dinfo ~/Downloads/ftp.medimg.emory.edu/NMCardiac/JonNye/PiB_binding_maps/NIFTI/VN040_20110412_LI_rsl.nii
++ 3dinfo: AFNI version=AFNI_2011_12_21_1014 (Dec 1 2012) [64-bit]
Dataset File: /home/stowler-local/Downloads/ftp.medimg.emory.edu/NMCardiac/JonNye/PiB_binding_maps/NIFTI/VN040_20110412_LI_rsl.nii
Identifier Code: NII_MVGvk3_9itSHbYxclrBKWw Creation Date: Tue Apr 23 12:23:56 2013
Template Space: ORIG
Dataset Type: Anat Bucket (-abuc)
Byte Order: LSB_FIRST {assumed} [this CPU native = LSB_FIRST]
Storage Mode: NIFTI
Storage Space: 25,090,560 (25 million) bytes
Geometry String: "MATRIX(-2,0,0,0,0,-2,0,0,0,0,2,0):198,198,160"
Data Axes Tilt: Plumb
Data Axes Orientation:
first (x) = Left-to-Right
second (y) = Posterior-to-Anterior
third (z) = Inferior-to-Superior [-orient LPI]
R-to-L extent: -394.000 [R] -to- -0.000 -step- 2.000 mm [198 voxels]
A-to-P extent: -394.000 [A] -to- -0.000 -step- 2.000 mm [198 voxels]
I-to-S extent: 0.000 -to- 318.000 [S] -step- 2.000 mm [160 voxels]
Number of values stored at each pixel = 1
-- At sub-brick #0 '?' datum type is float
fslhd ~/Downloads/ftp.medimg.emory.edu/NMCardiac/JonNye/PiB_binding_maps/NIFTI/VN040_20110412_LI_rsl.nii
filename /home/stowler-local/Downloads/ftp.medimg.emory.edu/NMCardiac/JonNye/PiB_binding_maps/NIFTI/VN040_20110412_LI_rsl.nii
sizeof_hdr 348
data_type FLOAT32
dim0 3
dim1 198
dim2 198
dim3 160
dim4 0
dim5 0
dim6 0
dim7 0
vox_units mm
time_units s
datatype 16
nbyper 4
bitpix 32
pixdim0 0.0000000000
pixdim1 1.2187500000
pixdim2 1.2187500000
pixdim3 1.2187500000
pixdim4 0.0000000000
pixdim5 0.0000000000
pixdim6 0.0000000000
pixdim7 0.0000000000
vox_offset 352
cal_max 0.0000
cal_min 0.0000
scl_slope 1.000000
scl_inter 0.000000
phase_dim 0
freq_dim 0
slice_dim 0
slice_name Unknown
slice_code 0
slice_start 0
slice_end 0
slice_duration 0.000000
time_offset 0.000000
intent Unknown
intent_code 0
intent_name
intent_p1 0.000000
intent_p2 0.000000
intent_p3 0.000000
qform_name Unknown
qform_code 0
qto_xyz:1 1.218750 0.000000 0.000000 0.000000
qto_xyz:2 0.000000 1.218750 0.000000 0.000000
qto_xyz:3 0.000000 0.000000 1.218750 0.000000
qto_xyz:4 0.000000 0.000000 0.000000 1.000000
qform_xorient Left-to-Right
qform_yorient Posterior-to-Anterior
qform_zorient Inferior-to-Superior
sform_name Scanner Anat
sform_code 1
sto_xyz:1 2.000000 0.000000 0.000000 0.000000
sto_xyz:2 0.000000 2.000000 0.000000 0.000000
sto_xyz:3 0.000000 0.000000 2.000000 0.000000
sto_xyz:4 0.000000 0.000000 0.000000 1.000000
sform_xorient Left-to-Right
sform_yorient Posterior-to-Anterior
sform_zorient Inferior-to-Superior
file_type NIFTI-1+
file_code 1
descrip VN040, VN040
aux_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment