erosion(spatstat)
erosion()所属R语言包:spatstat
Morphological Erosion
形态侵蚀
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Perform morphological erosion of a window, a line segment pattern or a point pattern.
进行形态学腐蚀的一个窗口一个点,线段模式或模式。
用法----------Usage----------
erosion(w, r, ...)
## S3 method for class 'owin'
erosion(w, r, shrink.frame=TRUE, ...,
strict=FALSE, polygonal=NULL)
## S3 method for class 'ppp'
erosion(w, r,...)
## S3 method for class 'psp'
erosion(w, r,...)
参数----------Arguments----------
参数:w
A window (object of class "owin" or a line segment pattern (object of class "psp") or a point pattern (object of class "ppp").
一个窗口(对象类"owin"或线段模式(类的对象"psp")或点模式(类的对象"ppp")。
参数:r
positive number: the radius of erosion.
正数的半径的侵蚀。
参数:shrink.frame
logical: if TRUE, erode the bounding rectangle as well.
逻辑:如果TRUE,以及侵蚀的边界矩形。
参数:...
extra arguments to as.mask controlling the pixel resolution, if pixel approximation is used.
额外的参数给as.mask控制像素的分辨率,如果使用像素近似。
参数:strict
Logical flag determining the fate of boundary pixels, if pixel approximation is used. See details.
逻辑的标志,确定边界像素的命运,如果像素的近似。查看详细信息。
参数:polygonal
Logical flag indicating whether to compute a polygonal approximation to the erosion (polygonal=TRUE) or a pixel grid approximation (polygonal=FALSE).
逻辑标志,指示是否计算多边形近似的侵蚀(polygonal=TRUE)或(polygonal=FALSE)的像素网格近似。
Details
详细信息----------Details----------
The morphological erosion of a set W by a distance r > 0 is the subset consisting of all points x in W such that the distance from x to the boundary of W is greater than or equal to r. In other words it is the result of trimming a margin of width r off the set W.
一组的形态侵蚀W的距离r > 0是所有的点的子集组成的x in W等x边界的距离由W工业是大于或等于r。换句话说,它是结果的修剪缘的宽度r落定W的。
If polygonal=TRUE then a polygonal approximation to the erosion is computed. If polygonal=FALSE then a pixel approximation to the erosion is computed from the distance map of w. The arguments "\dots" are passed to as.mask to control the pixel resolution. The erosion consists of all pixels whose distance from the boundary of w is strictly greater than r (if strict=TRUE) or is greater than or equal to r (if strict=FALSE).
如果polygonal=TRUE然后计算多边形逼近的侵蚀。如果polygonal=FALSE像素近似的侵蚀计算从图w的距离。这些参数"\dots"传递给as.mask控制像素的分辨率。侵蚀的所有像素的边界的距离如果w如果r)或高于或等于strict=TRUE的(严格大于r(strict=FALSE)。
When w is a window, the default (when polygonal=NULL) is to compute a polygonal approximation if w is a rectangle or polygonal window, and to compute a pixel approximation if w is a window of type "mask".
当w是一个窗口,默认值(当polygonal=NULL)是计算多边形近似w是一个矩形或多边形窗口,并计算像素的近似如果w 是的窗口类型"mask"。
If shrink.frame is false, the resulting window is given the same outer, bounding rectangle as the original window w. If shrink.frame is true, the original bounding rectangle is also eroded by the same distance r.
如果shrink.frame是假的,在出现的窗口都被赋予相同外,原来的窗口w边界矩形。 shrink.frame如果是真实的,原始的边界矩形相同的距离r侵蚀。
To simply compute the area of the eroded window, use eroded.areas.
只是简单的计算领域的侵蚀窗口,使用eroded.areas。
值----------Value----------
If r > 0, an object of class "owin" representing the eroded region (or NULL if this region is empty). If r=0, the result is identical to w.
如果r > 0,一个类的对象"owin"代表被侵蚀的区域(或NULL如果这个区域是空的)。如果r=0,结果是相同的w。
(作者)----------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----------
dilation for the opposite operation.
dilation相反的操作。
owin, as.owin, eroded.areas
owin,as.owin,eroded.areas
实例----------Examples----------
w <- owin(c(0,1),c(0,1))
v <- erosion(w, 0.1)
# returns rectangle [0.1, 0.9] x [0.1,0.9][返回Rectangle [0.1,0.9]×[0.1,0.9]]
## Not run: [#不运行:]
v <- erosion(w, 0.6)
# erosion is empty[侵蚀是空的]
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|