affine.owin(spatstat)
affine.owin()所属R语言包:spatstat
Apply Affine Transformation To Window
仿射变换窗口
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies any affine transformation of the plane (linear transformation plus vector shift) to a window.
适用于任何平面(线性变换加矢量移位)仿射变换的一个窗口。
用法----------Usage----------
## S3 method for class 'owin'
affine(X, mat=diag(c(1,1)), vec=c(0,0), ..., rescue=TRUE)
参数----------Arguments----------
参数:X
Window (object of class "owin").
窗口(类的对象"owin")。
参数:mat
Matrix representing a linear transformation.
矩阵的线性变换。
参数:vec
Vector of length 2 representing a translation.
矢量长度为2翻译。
参数:rescue
Logical. If TRUE, the transformed window will be processed by rescue.rectangle.
逻辑。如果TRUE,转化窗口,将处理rescue.rectangle。
参数:...
Optional arguments passed to as.mask controlling the pixel resolution of the transformed window, if X is a binary pixel mask.
可选参数传递给as.mask控制的像素分辨率的转换窗口,如果X是一个二进制的像素掩码。
Details
详细信息----------Details----------
The window is subjected first to the linear transformation represented by mat (multiplying on the left by mat), and then the result is translated by the vector vec.
第一个所代表的线性变换窗口经受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 window (of class "owin") representing the result of applying the affine transformation.
另一个窗口(类"owin")应用仿射变换的结果。
(作者)----------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.ppp, affine.psp, affine.im, rotate, shift
affine,affine.ppp,affine.psp,affine.im,rotate,shift
实例----------Examples----------
# shear transformation[剪切变换]
shear <- matrix(c(1,0,0.6,1),ncol=2)
X <- affine(owin(), shear)
## Not run: [#不运行:]
plot(X)
## End(Not run)[#(不执行)]
data(letterR)
affine(letterR, shear, c(0, 0.5))
affine(as.mask(letterR), shear, c(0, 0.5))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|