shift.im(spatstat)
shift.im()所属R语言包:spatstat
Apply Vector Translation To Pixel Image
将矢量翻译像素图像
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Applies a vector shift to a pixel image
应用向量转移到一个像素的图像
用法----------Usage----------
## S3 method for class 'im'
shift(X, vec=c(0,0), ..., origin=NULL)
参数----------Arguments----------
参数:X
Pixel image (object of class "im").
像素的图像(类的对象"im"“)。
参数:vec
Vector of length 2 representing a translation.
矢量长度为2翻译。
参数:...
Ignored
忽视
参数:origin
Character string determining a location that will be shifted to the origin. Options are "centroid", "midpoint" and "bottomleft". Partially matched.
字符串判定的位置,将被转移到原点。选项"centroid","midpoint"和"bottomleft"。部分匹配。
Details
详细信息----------Details----------
The spatial location of each pixel in the image is translated by the vector vec. This is a method for the generic function shift.
在图像中的每个像素的空间位置由矢量vec被翻译。这是一个方法的通用函数shift。
If origin is given, then it should be one of the character strings "centroid", "midpoint" or "bottomleft". The argument vec will be ignored; instead the shift will be performed so that the specified geometric location is shifted to the origin. If origin="centroid" then the centroid of the image window will be shifted to the origin. If origin="midpoint" then the centre of the bounding rectangle of the image will be shifted to the origin. If origin="bottomleft" then the bottom left corner of the bounding rectangle of the image will be shifted to the origin.
origin如果是给定的,那么它应该是一个字符串的"centroid","midpoint"或"bottomleft"。 vec的参数将被忽略,而不是将执行移位,转移到指定的几何位置的起源。如果origin="centroid"然后在图像窗口的重心将转移到原点的。如果origin="midpoint"然后图像的边界矩形的中心将转移到原点的。如果origin="bottomleft"然后在左下角的边框的图像将被转移到原点的。
值----------Value----------
Another pixel image (of class "im") representing the result of applying the vector shift.
应用矢量移位的结果的另一个像素的图像(类"im")。
(作者)----------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----------
shift
shift
实例----------Examples----------
# make up an image[图像]
X <- setcov(unit.square())
plot(X)
Y <- shift(X, c(10,10))
plot(Y)
# no discernible difference except coordinates are different[没有明显的差异是不同的,除了坐标]
shift(X, origin="mid")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|