closing(spatstat)
closing()所属R语言包:spatstat
Morphological Closing
形态闭
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Perform morphological closing of a window, a line segment pattern or a point pattern.
进行形态闭的一个窗口一个点,线段模式或模式。
用法----------Usage----------
closing(w, r, ...)
## S3 method for class 'owin'
closing(w, r, ..., polygonal=NULL)
## S3 method for class 'ppp'
closing(w, r, ..., polygonal=TRUE)
## S3 method for class 'psp'
closing(w, r, ..., polygonal=TRUE)
参数----------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 the closing.
正数:的闭合的半径。
参数:...
extra arguments passed to as.mask controlling the pixel resolution, if a pixel approximation is used
额外的参数传递给as.mask控制像素的分辨率,如果一个像素的近似
参数: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 closing (Serra, 1982) of a set W by a distance r > 0 is the set of all points that cannot be separated from W by any circle of radius r. That is, a point x belongs to the closing W* if it is impossible to draw any circle of radius r that has x on the inside and W on the outside. The closing W* contains the original set W.
形态闭(塞拉,1982年)一组W的距离r > 0是所有点的集合,任何一个圆的半径W不能分开r 。也就是说,一个的x点属于收盘W*,如果它是不可能得出任何一个圆的半径rx在里面和W的在外面。截止W*包含原W。
For a small radius r, the closing operation has the effect of smoothing out irregularities in the boundary of W. For larger radii, the closing operation smooths out concave features in the boundary. For very large radii, the closed set W* becomes more and more convex.
对于一个小半径r,关闭操作具有在边界W平滑凹凸的效果。对于较大的半径,合闸操作的边界平滑的凹功能。对于非常大的半径,封闭设置W*变得更多和更加凹凸有致。
The algorithm applies dilation followed by erosion.
该算法适用于dilation其次是erosion的。
值----------Value----------
If r > 0, an object of class "owin" representing the closed region. If r=0, the result is identical to w.
如果r > 0,一个对象的类"owin"代表封闭的区域。如果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>
参考文献----------References----------
Image analysis and mathematical morphology. Academic Press.
参见----------See Also----------
opening for the opposite operation.
opening相反的操作。
dilation, erosion for the basic operations.
dilation,erosion的基本操作。
owin, as.owin for information about windows.
owin,as.owin信息窗口。
实例----------Examples----------
data(letterR)
v <- closing(letterR, 0.25, dimyx=256)
plot(v, main="closing")
plot(letterR, add=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|