rescue.rectangle(spatstat)
rescue.rectangle()所属R语言包:spatstat
Convert Window Back To Rectangle
返回矩形转换窗口
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Determines whether the given window is really a rectangle aligned with the coordinate axes, and if so, converts it to a rectangle object.
确定给定的窗口是否是一个真正的与坐标轴对齐的矩形,如果是的话,将其转换为矩形对象。
用法----------Usage----------
rescue.rectangle(W)
参数----------Arguments----------
参数:W
A window (object of class "owin").
一个窗口(类的对象"owin"“)。
Details
详细信息----------Details----------
This function decides whether the window W is actually a rectangle aligned with the coordinate axes. This will be true if W is
此功能决定是否窗口W实际上是与坐标轴对齐的矩形。如果W是,这将是真正的
a rectangle (window object of type "rectangle");
一个矩形(窗口对象的类型"rectangle");
a polygon (window object of type "polygonal" with a single polygonal boundary) that is a rectangle aligned with the coordinate axes;
一个多边形(window对象的类型"polygonal"用一个多边形边界),这是一个与坐标轴对齐的矩形;
a binary mask (window object of type "mask") in which all the pixel entries are TRUE.
二进制掩码(window对象的类型"mask")中的所有像素的条目是TRUE。
If so, the function returns this rectangle, a window object of type "rectangle". If not, the function returns W.
如果是这样,该函数返回这个矩形,一个窗口对象的类型"rectangle"。如果没有,则函数返回W。
值----------Value----------
Another object of class "owin" representing the same window.
另一个对象类"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----------
as.owin, owin.object
as.owin,owin.object
实例----------Examples----------
w <- owin(poly=list(x=c(0,1,1,0),y=c(0,0,1,1)))
rw <- rescue.rectangle(w)
w <- as.mask(unit.square())
rw <- rescue.rectangle(w)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|