bounding.box(spatstat)
bounding.box()所属R语言包:spatstat
Bounding Box of a Window or Point Pattern
边界框窗口或点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Find the smallest rectangle containing a given window(s) or point pattern(s).
查找包含一个给定的窗口(s)或点图案()的最小矩形。
用法----------Usage----------
bounding.box(...)
参数----------Arguments----------
参数:...
One or more windows (objects of class "owin"), pixel images (objects of class "im") or point patterns (objects of class "ppp").
一个或多个窗口(类"owin"),像素的图像(对象的类"im")或模式(类"ppp"对象的对象)。
Details
详细信息----------Details----------
This function finds the smallest rectangle (with sides parallel to the coordinate axes) that contains all the given objects.
此功能发现的最小的矩形(边平行于坐标轴),它包含了所有给定的对象。
For a window (object of class "owin"), the bounding box is the smallest rectangle that contains all the vertices of the window (this is generally smaller than the enclosing frame, which is returned by as.rectangle).
对于一个窗口(对象类"owin"),边界矩形框是最小的,它包含了所有的窗口(这是一般小于封闭的框架,这是as.rectangle)返回的顶点。
For a point pattern (object of class "ppp"), the bounding box is the smallest rectangle that contains all the points of the pattern, and is computed by bounding.box.xy.
换一个角度模式(类的对象"ppp"),边框是最小的长方形,包含所有点的模式,和的计算方法是bounding.box.xy。
For a pixel image (object of class "im"), the image will be converted to a window using as.owin, and the bounding box of this window is obtained.
对于一个像素的图像(类的对象"im"),图像将被转换为一个窗口中使用as.owin,此窗口的边界框。
If the argument is a list of several objects, then this function finds the smallest rectangle that contains all the bounding boxes of the objects.
如果参数是一个列表的几个对象,那么这个函数发现的最小的矩形包含所有边框的对象。
值----------Value----------
A window (object of class "owin") of type "rectangle" representing a rectangle.
一个窗口(类的对象"owin")类型"rectangle"代表一个矩形。
(作者)----------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.rectangle bounding.box.xy
owin,as.owin,as.rectanglebounding.box.xy
实例----------Examples----------
w <- owin(c(0,10),c(0,10), poly=list(x=c(1,2,3,2,1), y=c(2,3,4,6,7)))
r <- bounding.box(w)
# returns rectangle [1,3] x [2,7][返回矩形[1,3]×[2,7]]
w2 <- unit.square()
r <- bounding.box(w, w2)
# returns rectangle [0,3] x [0,7][返回矩形[0,3]×[0,7]]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|