找回密码
 注册
查看: 544|回复: 0

R语言 Rniftilib包 nifti()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-27 19:48:34 | 显示全部楼层 |阅读模式
nifti(Rniftilib)
nifti()所属R语言包:Rniftilib

                                        NIfTI object
                                         NIfTI对象

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

A NIfTI object contains the image description and data of an image volume. Voxels can be accessed by the bracket [dim1,dim2,dim3,...,dim7] operator.
一个NIfTI对象包含的形象描述的图像和数据量。体素的可以访问的支架[DIM1,DIM2,为dim3,...,dim7]操作符。


用法----------Usage----------


  ## S3 method for class 'nifti'
x[
       dim1=1:nifti.image.getdim.save(x,1),
       dim2=1:nifti.image.getdim.save(x,2),
       dim3=1:nifti.image.getdim.save(x,3),
       dim4=1:nifti.image.getdim.save(x,4),
       dim5=1:nifti.image.getdim.save(x,5),
       dim6=1:nifti.image.getdim.save(x,6),
       dim7=1:nifti.image.getdim.save(x,7)]      
  ## S3 method for class 'nifti'
x$sym
  ## S3 method for class 'nifti'
dim(x)
  ## S3 method for class 'nifti'
print(x,...)
  ## S3 method for class 'nifti'
plot(x, dim1=1:nifti.image.getdim.save(x,1), dim2=1:nifti.image.getdim.save(x,2),dim3=1, dim4=1,...)
  is.nifti(x)



参数----------Arguments----------

参数:x
NIfTI image object (class nifti)
NIfTI图像对象(类nifti)


参数:sym
<table summary="Rd table"> <tr>  <td align="right">   qto.xyz</td><td align="left"> voxel to mm transformation (R style indexing!)</td> </tr> <tr>  <td align="right">    qto.ijk</td><td align="left"> mm to voxel transformation (R style indexing!)</td> </tr> <tr>  <td align="right">   sto.xyz</td><td align="left"> voxel to mm transformation (R style indexing!)</td> </tr> <tr>  <td align="right">   sto.ijk</td><td align="left"> mm to voxel transformation (R style indexing!)</td> </tr> <tr>  <td align="right">   qto_xyz</td><td align="left"> voxel to mm transformation (C style indexing!)</td> </tr> <tr>  <td align="right">    qto_ijk</td><td align="left"> mm to voxel transformation (C style indexing!)</td> </tr> <tr>  <td align="right">   sto_xyz</td><td align="left"> voxel to mm transformation (C style indexing!)</td> </tr> <tr>  <td align="right">   sto_ijk</td><td align="left"> mm to voxel transformation (C style indexing!)</td> </tr> <tr>  <td align="right">   toffset</td><td align="left"> </td> </tr> <tr>  <td align="right">   descrip</td><td align="left"> description (up to 80 characters)</td> </tr> <tr>  <td align="right">   fname</td><td align="left"> header filename (store image information)</td> </tr> <tr>  <td align="right">   iname</td><td align="left"> image filename (store image data)</td> </tr> <tr>  <td align="right">   slice.duration</td><td align="left"> time for 1 slice</td> </tr> <tr>  <td align="right">   qform.code</td><td align="left"> NIFTI.XFORM.UNKNOWN (0) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.SCANNER.ANAT (1) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.ALIGNED.ANAT (2) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.TALAIRACH (3) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.MNI.152 (4)</td> </tr> <tr>  <td align="right">    </td><td align="left"> qform code: >No< for unknown tags </td> </tr> <tr>  <td align="right">   sform.code</td><td align="left"> NIFTI.XFORM.UNKNOWN (0) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.SCANNER.ANAT (1)</td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.ALIGNED.ANAT (2)</td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.TALAIRACH (3) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.XFORM.MNI.152 (4) </td> </tr> <tr>  <td align="right">    </td><td align="left"> sform code: >No< for unknown tags </td> </tr> <tr>  <td align="right">   quatern.b</td><td align="left"> </td> </tr> <tr>  <td align="right">   quatern.c</td><td align="left"> </td> </tr> <tr>  <td align="right">   quatern.d</td><td align="left"> </td> </tr> <tr>  <td align="right">   qoffset.x</td><td align="left"> </td> </tr> <tr>  <td align="right">   qoffset.y</td><td align="left"> </td> </tr> <tr>  <td align="right">   qoffset.z</td><td align="left"> </td> </tr> <tr>  <td align="right">   qfac</td><td align="left"> </td> </tr> <tr>  <td align="right">   dim</td><td align="left"> image volume size in voxel </td> </tr> <tr>  <td align="right">   pixdim</td><td align="left"> grid spacings. </td> </tr> <tr>  <td align="right">   datatype</td><td align="left"> data type (set also field nbyper)</td> </tr> <tr>  <td align="right">   nbyper</td><td align="left"> bytes per voxel, matches datatype (read only) </td> </tr> <tr>  <td align="right">   nifti.type</td><td align="left"> NIFTI.FTYPE.ANALYZE (0)  : .hdr + .img  files </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.FTYPE.NIFTI1.1(1)  : .nii file </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.FTYPE.NIFTI1.2 (2) : .hdr + .img files </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI.FTYPE.ASCII (3)    : ? </td> </tr> <tr>  <td align="right">   sizeof_hdr</td><td align="left"> MUST be 348</td> </tr> <tr>  <td align="right">   scl.slope </td><td align="left"> nifti1: Data scaling: slope.  analyze 7.5: float funused1 </td> </tr> <tr>  <td align="right">   scl.inter </td><td align="left"> nifti1: Data scaling: offset. analyze 7.5: float funused2 </td> </tr> <tr>  <td align="right">   xyz_units </td><td align="left"> NIFTI_UNITS_UNKNOWN ""     (0) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_METER  "m"     (1) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_MM     "mm"    (2) </td> </tr> <tr>  <td align="right">         </td><td align="left"> NIFTI_UNITS_MICRON "um"    (3) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_SEC    "s"     (8) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_MSEC   "ms"    (16) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_USEC   "us"    (24) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_HZ     "Hz"    (32) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_PPM    "ppm"   (40) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_RADS   "rad/s" (48) </td> </tr> <tr>  <td align="right">    </td><td align="left"> see also nifti.units.string</td> </tr> <tr>  <td align="right">      time_units</td><td align="left"> NIFTI_UNITS_UNKNOWN ""     (0) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_METER  "m"     (1) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_MM     "mm"    (2) </td> </tr> <tr>  <td align="right">         </td><td align="left"> NIFTI_UNITS_MICRON "um"    (3) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_SEC    "s"     (8) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_MSEC   "ms"    (16) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_USEC   "us"    (24) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_HZ     "Hz"    (32) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_PPM    "ppm"   (40) </td> </tr> <tr>  <td align="right">    </td><td align="left"> NIFTI_UNITS_RADS   "rad/s" (48) </td> </tr> <tr>  <td align="right">    </td><td align="left"> see also nifti.units.string   </td> </tr>  </table>
<table summary="Rd table"> <TR> <td align="right">qto.xyz </ TD> <TD ALIGN="LEFT">体素毫米变换(R风格索引)</ TD > </ TR> <TR> <td align="right"> qto.ijk </ TD> <TD ALIGN="LEFT">毫米体素转化(R风格索引)</ TD> </ TR文章<td align="right"> sto.xyz </ TD> <TD ALIGN="LEFT">体素毫米变换(R风格索引)</ TD> </ TR> <TR> <td align="right"> sto.ijk </ TD> <TD ALIGN="LEFT">毫米体素转化(R风格索引)</ TD> </ TR> <TR> <TD对齐= “正确”>qto_xyz </ TD> <TD ALIGN="LEFT">体素毫米转换(C风格的索引!)</ TD> </ TR> <TR> <td align="right"> qto_ijk </ TD> <TD ALIGN="LEFT">毫米体素转换(C风格的索引!)</ TD> </ TR> <TR> <td align="right">sto_xyz </ TD> <TD ALIGN="LEFT">体素毫米转换(C风格的索引!)</ TD> </ TR> <TR> <td align="right">sto_ijk</ TD > <td ALIGN="LEFT">毫米体素转换(C风格的索引!)</ TD> </ TR> <TR> <td align="right"> toffset </ TD> <TD调整=“”> </ TD> </ TR> <TR> <td align="right"> descrip </ TD> <TD ALIGN="LEFT">描述(最多80个字符)</ TD> </ TR> <TR> <td align="right">fname </ TD> <TD ALIGN="LEFT">头文件名(存储图像信息)</ TD> </ TR> < TR> <td align="right"> iname </ TD> <TD ALIGN="LEFT">图像的文件名(存储图像数据)</ TD> </ TR> <TR> <TD对齐=“正确“>slice.duration</ TD> <TD ALIGN="LEFT">时间为1片</ TD> </ TR> <TR> <td align="right">qform.code</ TD> <TD ALIGN="LEFT">NIFTI.XFORM.UNKNOWN(0)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI.XFORM.SCANNER.ANAT(1)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI.XFORM.ALIGNED.ANAT(2)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI.XFORM.TALAIRACH(3)</ TD> </ TR> <TR> <TD对齐= “正确”> </ TD> <TD ALIGN="LEFT">NIFTI.XFORM.MNI.152(4)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD调整=“”>qform code: >No<未知的标签</ TD> </ TR> <TR> <td align="right">sform.code</ TD> <TD ALIGN="LEFT"> NIFTI.XFORM.UNKNOWN(0)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI.XFORM.SCANNER.ANAT(1)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI.XFORM.ALIGNED.ANAT(2)</ TD> </ TR> <TR> <TD对齐= “正确”> </ TD> <TD ALIGN="LEFT">NIFTI.XFORM.TALAIRACH(3)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD调整=“”>NIFTI.XFORM.MNI.152(4)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">sform code: >No<未知的标签</ TD> </ TR> <TR> <td align="right">quatern.b </ TD> <TD ALIGN="LEFT"> </ TD> </ TR> <TR> < TD对齐=“”>quatern.c </ TD> <TD ALIGN="LEFT"> </ TD> </ TR> <TR> <td align="right">quatern.d</ TD> <TD ALIGN="LEFT"> </ TD> </ TR> <TR> <td align="right">qoffset.x </ TD> <TD ALIGN="LEFT"> </ TD> </ TR> <TR> <td align="right"> qoffset.y </ TD> <TD ALIGN="LEFT"> </ TD> </ TR> <TR> <TD ALIGN =“正确的” > qoffset.z </ TD> <TD ALIGN="LEFT"> </ TD> </ TR> <TR> <td align="right"> qfac </ TD> <TD对齐= “左”> </ TD> </ TR> <TR> <td align="right">dim </ TD> <TD ALIGN="LEFT">图像体积大小在体元</ TD> < / TR> <TR> <td align="right"> pixdim </ TD> <TD ALIGN="LEFT">网格间距。 </ TD> </ TR> <TR> <td align="right"> datatype </ TD> <TD ALIGN="LEFT">数据类型(还田nbyper)</ TD> </ TR> <TR> <td align="right"> nbyper </ TD> <TD ALIGN="LEFT">字节每个体素,匹配的数据类型(只读)</ TD> </ TR> <TR> <td align="right"> nifti.type </ TD> <TD ALIGN="LEFT"> NIFTI.FTYPE.ANALYZE(0):HDR +。img文件</ TD> < / TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI.FTYPE.NIFTI1.1(1):NII文件</ TD> </ TR> <TR> < TD对齐=“”> </ TD> <TD ALIGN="LEFT">NIFTI.FTYPE.NIFTI1.2(2):HDR +。img文件</ TD> </ TR> <TR> <TD对齐=“右“> </ TD> <TD ALIGN="LEFT">NIFTI.FTYPE.ASCII(3):? </ TD> </ TR> <TR> <td align="right"> sizeof_hdr </ TD> <TD ALIGN="LEFT">必须是348 </ TD> </ TR> <TR> <td align="right"> scl.slope </ TD> <TD ALIGN="LEFT"> nifti1:数据缩放:斜坡。分析:7.5浮funused1 </ TD> </ TR> <TR> <td align="right">scl.inter </ TD> <TD ALIGN="LEFT"> nifti1:数据缩放:偏移。分析:7.5持股量funused2 </ TD> </ TR> <TR> <td align="right">xyz_units </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_UNKNOWN“(0 )</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_METER“M”(1)</ TD> </ TR文章<td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_MM“MM”(2)</ TD> </ TR> <TR> <TD对齐= “正确”> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_MICRON“嗯”(3)</ TD> </ TR> <TR> <td align="right"> </ TD> “<td ALIGN="LEFT">NIFTI_UNITS_SEC”S“(8)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_MSEC“MS”(16)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_USEC“我们” (24)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_HZ“赫兹”(32)</ TD> < / TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_PPM“PPM”(40)</ TD> </ TR> <TR> <TD ALIGN =“”> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_RADS“弧度/秒”(48)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">看到nifti.units.string </ TD> </ TR> <TR> <td align="right">time_units </ TD> <TD调整=“”> NIFTI_UNITS_UNKNOWN“(0)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_METER “M”(1)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_MM“MM”(2)< / TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_MICRON“嗯”(3)</ TD> </ TR> < TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_SEC“S”(8)</ TD> </ TR> <TR> <TD调整=“ “> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_MSEC”MS“(16)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN =“”>NIFTI_UNITS_USEC“我们”(24)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_HZ“赫兹”(32)</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">NIFTI_UNITS_PPM“PPM”(40 )</ TD> </ TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT"> NIFTI_UNITS_RADS“弧度/秒”(48)</ TD> < / TR> <TR> <td align="right"> </ TD> <TD ALIGN="LEFT">也见nifti.units.string</ TD> </ TR> </ TABLE>


参数:dim1
vector of voxel indices (x)
向量的体素指数(X)


参数:dim2
vector of voxel indices (y)
向量的体素指数(Y)


参数:dim3
vector of voxel indices (z)
向量的体素指数(Z)


参数:dim4
vector of voxel indices (t)
向量的体素指数(T)


参数:dim5
vector of voxel indices
向量的体素指数


参数:dim6
vector of voxel indices
向量的体素指数


参数:dim7
vector of voxel indices
向量的体素指数


参数:...
additional arguments for plotting (e.g. image) and printing
额外的绘图的参数(如:image)和印刷


(作者)----------Author(s)----------



Oliver Granert &lt;o.granert &lt;at&gt; neurologie.uni-kiel.de&gt;




参考文献----------References----------

http://niftilib.sourceforge.net

参见----------See Also----------

nifti.image.read, nifti.image.write, nifti.image.new
nifti.image.read,nifti.image.write,nifti.image.new

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-24 19:25 , Processed in 0.019793 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表