as.polygonal(spatstat)
as.polygonal()所属R语言包:spatstat
Convert a Window to a Polygonal Window
转换一个多边形窗口一个窗口来
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a window W of any geometric type (rectangular, polygonal or binary mask), this function returns a polygonal window that represents the same spatial domain.
给定一个窗口W任何几何类型(矩形,多边形或二进制掩码),这个函数返回一个多边形窗口,代表相同的空间域。
用法----------Usage----------
as.polygonal(W)
参数----------Arguments----------
参数:W
A window (object of class "owin").
一个窗口(类的对象"owin"“)。
Details
详细信息----------Details----------
Given a window W of any geometric type (rectangular, polygonal or binary mask), this function returns a polygonal window that represents the same spatial domain.
给定一个窗口W任何几何类型(矩形,多边形或二进制掩码),这个函数返回一个多边形窗口,代表相同的空间域。
If W is already polygonal, it is returned without change.
如果W是多边形,则返回没有变化。
If W is a rectangle, it is converted to a polygon with 4 vertices.
如果W是一个矩形,它被转换成4个顶点的多边形。
If W is a binary mask, then each pixel in the mask is replaced by a small square or rectangle, and the union of these squares or rectangles is computed. The result is a polygonal window that has only horizontal and vertical edges. (Use simplify.owin to remove the staircase appearance, if desired).
如果W是一个二进制掩码,掩码中的每个像素被替换由一个小的正方形或长方形,以及这些正方形或长方形的联合被计算。其结果是一个多边形的仅具有水平和垂直边缘的窗口。 (使用simplify.owin删除的楼梯外观,如果需要的话)。
值----------Value----------
A polygonal window (object of class "owin" and of type "polygonal").
一个多边形的窗口(对象类"owin"和类型"polygonal"的)。
(作者)----------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----------
owin, as.owin, as.mask, simplify.owin
owin,as.owin,as.mask,simplify.owin
实例----------Examples----------
data(letterR)
m <- as.mask(letterR, dimyx=32)
p <- as.polygonal(m)
if(interactive()) {
plot(m)
plot(p, add=TRUE, lwd=2)
}
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|