affine.ppp(spatstat)
affine.ppp()所属R语言包:spatstat
Apply Affine Transformation To Point Pattern
应用仿射变换点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies any affine transformation of the plane (linear transformation plus vector shift) to a point pattern.
适用于任何仿射变换的平面阵列点(线性变换加矢量移位)。
用法----------Usage----------
## S3 method for class 'ppp'
affine(X, mat=diag(c(1,1)), vec=c(0,0), ...)
参数----------Arguments----------
参数:X
Point pattern (object of class "ppp").
点模式(类的对象"ppp")。
参数: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 point 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 point pattern (of class "ppp") representing the result of applying the affine transformation.
另一点图案(类"ppp")应用仿射变换的结果。
(作者)----------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.psp, affine.im, flipxy, rotate, shift
affine,affine.owin,affine.psp,affine.im,flipxy,rotate,shift
实例----------Examples----------
data(cells)
# shear transformation[剪切变换]
X <- affine(cells, matrix(c(1,0,0.6,1),ncol=2))
## Not run: [#不运行:]
plot(X)
# rescale y coordinates by factor 1.3[重新调整y坐标系数1.3]
plot(affine(cells, diag(c(1,1.3))))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|