找回密码
 注册
查看: 409|回复: 0

R语言 spatstat包 complement.owin()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:18:49 | 显示全部楼层 |阅读模式
complement.owin(spatstat)
complement.owin()所属R语言包:spatstat

                                        Take Complement of a Window
                                         取补的一个窗口

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Take the set complement of a window, within its enclosing rectangle or in a larger rectangle.
以补集的一个窗口,其包围矩形内或在一个较大的矩形。


用法----------Usage----------


complement.owin(w, frame=as.rectangle(w))



参数----------Arguments----------

参数:w
an object of class "owin" describing a window of observation for a point pattern.  
对象的类"owin"描述一个窗口观察点模式。


参数:frame
Optional. The enclosing rectangle, with respect to which the set complement is taken.  
可选。的包围矩形,相对于被补集。


Details

详细信息----------Details----------

This yields a window object (of class "owin", see owin.object) representing the set complement of w with respect to the rectangle frame.
这将产生一个窗口,对象(类"owin",请参阅owin.object)代表w相对于矩形frame的补集。

By default, frame is the enclosing box of w (originally specified by the arguments xrange and yrange given to owin when w was created). If frame is specified, it must be a rectangle (an object of class "owin" whose type is "rectangle") and it must be larger than the enclosing box of w. This rectangle becomes the enclosing box for the resulting window.
默认情况下,frame是w(最初由参数指定的xrange和yrangeowinw创建的封闭箱)。如果frame被指定时,它必须是一个矩形(类"owin"其类型为一个目的"rectangle"),并且它必须是大于包围盒w。这个矩形成为的封闭框出现的窗口中。

If w is a rectangle, then frame must be specified. Otherwise an error will occur (since the complement of w in itself is empty).
如果w是一个矩形,然后frame必须指定。否则会发生错误(自补w本身是空的)。

For rectangular and polygonal windows, the complement is computed by reversing the sign of each boundary polygon, while for binary masks it is computed by negating the pixel values.
对于矩形和多边形的窗口,通过反转每个边界多边形的符号计算的补,而为二进制掩模,它通过否定的像素值被计算。


值----------Value----------

Another object of class "owin"  representing the complement of the window, i.e. the inside of the window becomes the outside.
另一个类的对象"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----------

owin, owin.object
owin,owin.object


实例----------Examples----------


   # rectangular[矩形]
   a <- owin(c(0,1),c(0,1))
   b <- owin(c(-1,2),c(-1,2))
   bmina <- complement.owin(a, frame=b)
   # polygonal[多边形]
   data(demopat)
   w <- demopat$window
   outside <- complement.owin(w)
   # mask[面膜]
   w <- as.mask(demopat$window)
   outside <- complement.owin(w)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-15 01:09 , Processed in 0.021254 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表