Create an affine matrix corresponding to the “xform” of an image
创建对应的“变换”“的图像的仿射矩阵
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function converts the “qform” or “sform” information in a NIfTI header into its corresponding affine matrix. These two “xform” mechanisms are defined by the NIfTI standard and may both be in use in a particular image header.
此功能可以把“qform”或“SFORM”的信息在NIfTI头到其相应的仿射矩阵。这两个“XFORM”机制由NIfTI标准定义,都可能是在一个特定的图像头中使用。
用法----------Usage----------
xformToAffine(image, useQuaternionFirst = TRUE)
参数----------Arguments----------
参数:image
A object of class "nifti" from which to take the information.
一个对象类"nifti"采取的信息。
参数:useQuaternionFirst
A single logical value. If TRUE, the “qform” matrix will be used first, if it is defined; otherwise the “sform” matrix will take priority.
一个单一的逻辑值。如果TRUE中,“qform”矩阵将被首先使用,如果它被定义,否则“SFORM”矩阵将优先。
值----------Value----------
A affine matrix corresponding to the “qform” or “sform” information in the image header.
甲“qform”或“SFORM”的图像标头中的信息相对应的仿射矩阵。
(作者)----------Author(s)----------
Jon Clayden <jon.clayden+rniftyreg@gmail.com>