incircle(spatstat)
incircle()所属R语言包:spatstat
Find Largest Circle Inside Window
最大的圆窗口内部
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Find the largest circle contained in a given window.
包含在一个给定的窗口中找到最大的圆。
用法----------Usage----------
incircle(W)
参数----------Arguments----------
参数:W
A window (object of class "owin").
一个窗口(类的对象"owin"“)。
Details
详细信息----------Details----------
Given a window W of any type and shape, this function determines the largest circle that is contained inside W.
鉴于一个窗口W任何类型和形状,这个函数确定的最大的圆的内部载W。
For non-rectangular windows, the incircle is computed approximately by finding the maximum of the distance map (see distmap) of the complement of the window.
对于非矩形窗口,内切圆的近似计算找到的最大的距离图(见distmap)的窗口的补码。
值----------Value----------
A list with entries x,y,r giving the location (x,y) and radius r of the incircle.
条目的列表x,y,r的位置(x,y)和的半径r的内切圆的。
(作者)----------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----------
centroid.owin
centroid.owin
实例----------Examples----------
W <- square(1)
Wc <- incircle(W)
plot(W)
plot(disc(Wc$r, c(Wc$x, Wc$y)), add=TRUE)
data(letterR)
plot(letterR)
Rc <- incircle(letterR)
plot(disc(Rc$r, c(Rc$x, Rc$y)), add=TRUE)
W <- as.mask(letterR)
plot(W)
Rc <- incircle(W)
plot(disc(Rc$r, c(Rc$x, Rc$y)), add=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|