affine.psp(spatstat)
affine.psp()所属R语言包:spatstat
Apply Affine Transformation To Line Segment Pattern
仿射变换应用到线段模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies any affine transformation of the plane (linear transformation plus vector shift) to a line segment pattern.
的平面(线性变换加上向量移位)的仿射变换的任何适用的线段图案。
用法----------Usage----------
## S3 method for class 'psp'
affine(X, mat=diag(c(1,1)), vec=c(0,0), ...)
参数----------Arguments----------
参数:X
Line Segment pattern (object of class "psp").
线段模式(类的对象"psp")。
参数:mat
Matrix representing a linear transformation.
矩阵的线性变换。
参数:vec
Vector of length 2 representing a translation.
矢量长度为2翻译。
参数:...
Arguments passed to affine.owin affecting the handling of the observation window, if it is a binary pixel mask.
参数传递给affine.owin影响的观察窗的处理,如果它是一个二进制象素掩模。
Details
详细信息----------Details----------
The line segment pattern, and its window, are subjected first to the linear transformation represented by mat (multiplying on the left by mat), and are then translated by the vector vec.
线段图案,和它的窗口,进行第1所表示的线性变换mat(左边乘以由mat),以及由矢量vec然后翻译。
The argument mat must be a nonsingular 2 * 2 matrix.
参数mat必须是一个非奇异的2 * 2矩阵。
This is a method for the generic function affine.
这是一个方法的通用函数affine。
值----------Value----------
Another line segment pattern (of class "psp") representing the result of applying the affine transformation.
另一个线段模式(类"psp")应用仿射变换的结果。
(作者)----------Author(s)----------
Adrian Baddeley
<a href="mailto:Adrian.Baddeley@csiro.au">Adrian.Baddeley@csiro.au</a>
<a href="http://www.maths.uwa.edu.au/~adrian/">http://www.maths.uwa.edu.au/~adrian/</a>
and Rolf Turner
<a href="mailto:r.turner@auckland.ac.nz">r.turner@auckland.ac.nz</a>
参见----------See Also----------
affine, affine.owin, affine.ppp, affine.im, flipxy, rotate, shift
affine,affine.owin,affine.ppp,affine.im,flipxy,rotate,shift
实例----------Examples----------
oldpar <- par(mfrow=c(2,1))
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
plot(X, main="original")
# shear transformation[剪切变换]
Y <- affine(X, matrix(c(1,0,0.6,1),ncol=2))
plot(Y, main="transformed")
par(oldpar)
# []
# rescale y coordinates by factor 0.2[重新调整y坐标系数为0.2]
affine(X, diag(c(1,0.2)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|