decomposeAffine(RNiftyReg)
decomposeAffine()所属R语言包:RNiftyReg
Decompose an affine matrix into its constituent transformations
仿射矩阵分解成它的组成转换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
An affine matrix is composed of translation, scale, skew and rotation transformations. This function extracts these components.
由平移,缩放,倾斜和旋转变换的仿射矩阵。此函数提取这些组件。
用法----------Usage----------
decomposeAffine(affine, source = NULL, target = NULL, type = NULL)
参数----------Arguments----------
参数:affine
A 4x4 matrix representing an affine transformation matrix.
一个4x4矩阵的仿射变换矩阵。
参数:source
A "nifti" object representing the source image for the transformation. Only required if type (or the matrix's affineType attribute) is "niftyreg", in which case it is passed to convertAffine.
A"nifti"对象,表示源图像的改造。只需要type(或矩阵的affineType属性)是"niftyreg",在这种情况下,它被传递给convertAffine的。
参数:target
A "nifti" object representing the target image for the transformation. Only required if type (or the matrix's affineType attribute) is "niftyreg", in which case it is passed to convertAffine.
A"nifti"对象,表示目标图像的改造。只需要type(或矩阵的affineType属性)是"niftyreg",在这种情况下,它被传递给convertAffine的。
参数:type
The storage convention type of the affine matrix, if it is not stored in the affineType attribute of the matrix.
公约的存储类型,如果它不存储在affineType属性的矩阵的仿射矩阵。
值----------Value----------
A list with components
组件列表
参数:scaleMatrix
A 3x3 matrix representing only the scale operation embodied in the full affine transformation.
一个3x3的矩阵规模化经营体现在全仿射变换。
参数:skewMatrix
A 3x3 matrix representing only the skew operation embodied in the full affine transformation.
一个3x3的矩阵,表示只体现在全仿射变换的倾斜操作。
参数:rotationMatrix
A 3x3 matrix representing only the rotation operation embodied in the full affine transformation.
体现在全仿射变换的一个3x3的矩阵仅代表旋转操作。
参数:translation
A length-3 named numeric vector representing the translations (generally in mm) in each of the X, Y and Z directions.
长度为3的名为“数字矢量(一般在毫米)的X,Y和Z方向的翻译。
参数:scales
A length-3 named numeric vector representing the scale factors in each of the X, Y and Z directions. Scale factors of 1 represent no effect.
长度为3的名为“数字矢量的X,Y和Z方向的代表比例因子。比例因子1代表没有任何效果。
参数:skews
A length-3 named numeric vector representing the skews in each of the XY, XZ and YZ planes.
长度为3的名为“数字矢量在XY,XZ和YZ平面的倾斜。
参数:angles
A length-3 named numeric vector representing the rotation angles (in radians) about each of the X, Y and Z directions; i.e. roll, pitch and yaw.
长度为3的命名数值向量,代表的X,Y和Z方向的旋转角度(弧度),即横滚,俯仰和偏航。
注意----------Note----------
The decomposition is not perfect, and there is one particular degenerate case when the pitch angle is very close to pi/2 radians, known as “Gimbal lock”. In this case the yaw angle is arbitrarily set to zero.
分解是不完美的,有一个特别的退化情况时的俯仰角非常接近pi/2弧度,被称为“万向节锁”。在这种情况下,横摆角任意设置为零。
Affine matrices embodying rigid-body transformations include only 6 degrees of freedom, rather than the full 12, so skews will always be zero and scales will always be unity (to within rounding error).
仿射体现了刚体变换矩阵只包含6个自由度,而不是完整的12倾斜将永远是零和规模将永远是团结的(四舍五入误差范围内)。
(作者)----------Author(s)----------
Jon Clayden <jon.clayden+rniftyreg@gmail.com>
参见----------See Also----------
convertAffine, niftyreg
convertAffine,niftyreg
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|