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

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

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

                                        Distance to Boundary of Window
                                         窗口边界的距离

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

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

Computes the distances  from each pixel in a window to the boundary of the window.
从在一个窗口中的每个像素的距离计算的窗口的边界。


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


bdist.pixels(w, ..., style="image")



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

参数:w
A window (object of class "owin").
一个窗口(类的对象"owin"“)。


参数:...
Arguments passed to as.mask to determine the pixel resolution.
参数传递给as.mask的来确定像素的分辨率。


参数:style
Character string determining the format of the output: either "matrix", "coords" or "image".  
确定的输出格式的字符串:要么"matrix","coords"或"image"。


Details

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

This function computes, for each pixel u in the window w, the shortest distance dist(u, W') from u to the boundary of W.
该函数计算,对每一个像素u在窗口中的w,以最短的距离dist(u, W')由u工业的边界W。

If the window is not of type "mask" then it is first converted to that type. The arguments "\dots" are passed to as.mask to determine the pixel resolution.
如果窗口是不的类型"mask",那么这是第一次转换的类型。这些参数"\dots"传递给as.mask,以确定像素的分辨率。


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

If style="image", a pixel image (object of class "im") containing the distances from each pixel in the image raster to the boundary of the window.
如果style="image",一个像素的图像(对象的类"im")包含窗口的边界的图像的光栅中的每个像素的距离。

If style="matrix", a matrix giving the distances from each pixel in the image raster to the boundary of the window. Rows of this matrix correspond to the y coordinate and columns to the x coordinate.
如果style="matrix",给予从各像素的图像栅格中的窗口的边界的距离的矩阵。这个矩阵的行对应的y坐标和列的x坐标。

If style="coords", a list with three components x,y,z, where x,y are vectors of length m,n giving the x and y coordinates respectively, and z is an m x n matrix such that z[i,j] is the distance from (x[i],y[j]) to the boundary of the window. Rows of this matrix correspond to the x coordinate and columns to the y coordinate. This result can be plotted with persp, image or contour.
如果style="coords",三部分组成的列表x,y,z,其中x,y是向量的长度m,n给x和y坐标分别z是m x n矩阵,z[i,j]从(x[i],y[j])的窗口边界的距离。这个矩阵的行对应的x坐标和列的y坐标。这个结果可以绘制persp,image或contour。


(作者)----------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.object, erosion, bdist.points, bdist.tiles.
owin.object,erosion,bdist.points,bdist.tiles。


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


  u <- owin(c(0,1),c(0,1))
  d <- bdist.pixels(u, eps=0.01)
  image(d)
  d <- bdist.pixels(u, eps=0.01, style="matrix")
  mean(d >= 0.1)
  # value is approx (1 - 2 * 0.1)^2 = 0.64[值大约是(1  -  2 * 0.1)^ 2 = 0.64]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-12 16:59 , Processed in 0.024560 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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