fslinfo /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
#报错了,真奇怪,NIfTI文件中sform和qform中存储的左右顺序不一致,导致无法将sform复制到qform,这会导致图像在空间中的方向不正确
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
data_type UINT8
dim1 91
dim2 109
dim3 91
dim4 1
datatype 2
pixdim1 2.000000
pixdim2 2.000000
pixdim3 2.000000
pixdim4 1.000000
cal_max 48.0000
cal_min 0.0000
file_type NIFTI-1+
fslorient -getsform /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
#让我看看sform是什么?
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
2 0 0 -90 0 2 0 -126 0 0 2 -72 0 0 0 1
fslorient -getqform /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
#再让我看看qform是什么?
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
2 0 -0 -90 0 2 -0 -126 0 0 -2 -72 0 0 0 1
fslorient -copysform2qform /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
#把qform改成sform,那岂不就可以识别了
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
#ERROR: Inconsistent left-right order stored in sform and qform in file /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm
Using sform instead of qform values
#查看是否修改成功
fslorient -getsform /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
2 0 0 -90 0 2 0 -126 0 0 2 -72 0 0 0 1
fslorient -getqform /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
2 0 0 -90 0 2 0 -126 0 0 2 -72 0 0 0 1
#欸,不报错了,嗯,标准空间的的这个图谱应该是好了
fslinfo /media/sf_Sharing/Atlas/JHU-WhiteMatter-labels-2mm.nii.gz
data_type UINT8
dim1 91
dim2 109
dim3 91
dim4 1
datatype 2
pixdim1 2.000000
pixdim2 2.000000
pixdim3 2.000000
pixdim4 1.000000
cal_max 48.0000
cal_min 0.0000
file_type NIFTI-1+
--Can--
FSL-->JHU-WhiteMatter-labels-2mm
最新推荐文章于 2024-11-04 16:09:26 发布