ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

Li‘s 核磁共振影像数据处理-22-FSL常用工具命令介绍 fslutils

2021-10-02 16:32:33  阅读:222  来源: 互联网

标签:nonzero nii 22 fslutils gz voxels output 常用工具 mean


讲解视频内容请移步Bilibili:
https://space.bilibili.com/542601735
入群讨论请加v hochzeitstorte
请注明“核磁共振学习”
公众号:美好事物中转站

今日代码

查看影像基本信息
fslinfo MNI152_T1_2mm_brain.nii.gz

在这里插入图片描述
查看影像更加详细的信息
fslhd MNI152_T1_2mm_brain.nii.gz
选填参数 -x,以XML格式输出。
“Don’t worry if you don’t know what every field means.”

在这里插入图片描述

各种统计量

fslstats MNI152_T1_2mm_brain.nii.gz -m -M
使用方法和可选参数:
Usage: fslstats [preoptions] [options]

preoption -t will give a separate output line for each 3D volume of a 4D timeseries
preoption -K < indexMask > will generate seperate n submasks from indexMask, for indexvalues 1…n where n is the maximum index value in indexMask, and generate statistics for each submask
Note - options are applied in order, e.g. -M -l 10 -M will report the non-zero mean, apply a threshold and then report the new nonzero mean

-l : set lower threshold
-u : set upper threshold
-r: output
-R: output
-e: output mean entropy ; mean(-i*ln(i))
-E: output mean entropy (of nonzero voxels)
-v: output
-V: output (for nonzero voxels)
-m: output mean
-M: output mean (for nonzero voxels)
-s: output standard deviation
-S: output standard deviation (for nonzero voxels)
-w: output smallest ROI containing nonzero voxels
-x: output co-ordinates of maximum voxel
-X: output co-ordinates of minimum voxel
-c: output centre-of-gravity (cog) in mm coordinates
-C: output centre-of-gravity (cog) in voxel coordinates
-p : output nth percentile (n between 0 and 100)
-P : output nth percentile (for nonzero voxels)
-a: use absolute values of all image intensities
-n: treat NaN or Inf as zero for subsequent stats
-k : use the specified image (filename) for masking - overrides lower and upper thresholds
-d : take the difference between the base image and the image specified here
-h : output a histogram (for the thresholded/masked voxels only) with nbins
-H : output a histogram (for the thresholded/masked voxels only) with nbins and histogram limits of min and max

Note - thresholds are not inclusive ie lthresh<allowed<uthresh

影像文件分割

fslsplit dwidata.nii.gz dwidata/vol

影像文件合并

fslmerge -t dwidata_merge vol*

影像剪切、尺寸调整

fslroi MNI152_T1_2mm_brain.nii.gz MNI152_T1_2mm_brain_resize.nii.gz -5 101 -5 119 -5 101

标签:nonzero,nii,22,fslutils,gz,voxels,output,常用工具,mean
来源: https://blog.csdn.net/weixin_38594676/article/details/120586909

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有