FSL-->JHU-WhiteMatter-labels-2mm

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--

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值