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

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

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

                                        Distance Map of Window
                                         距离映射窗口

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

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

Computes the distance from each pixel to the nearest point in the given window.
计算从每个像素的距离,以在给定的窗口中的最近点。


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


  ## S3 method for class 'owin'
distmap(X, ..., discretise=FALSE, invert=FALSE)



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

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


参数:...
Arguments passed to as.mask to control pixel resolution.  
参数传递给as.mask控制像素的分辨率。


参数:discretise
Logical flag controlling the choice of algorithm when X is a polygonal window. See Details.  
逻辑标志控制算法的选择,当X是一个多边形窗口。查看详细信息。


参数:invert
If TRUE, compute the distance transform of the complement of the window.  
如果TRUE,计算的距离变换窗口的补。


Details

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

The “distance map” of a window W is the function f whose value f(u) is defined for any two-dimensional location u as the shortest distance from u to W.
“距离图”的一个窗口W的功能是ff(u)被定义为任何二维位置u的值,作为从<X的最短距离>到u。

This function computes the distance map of the window X and returns the distance map as a pixel image. The greyscale value at a pixel u equals the distance from u to the nearest pixel in X.
此函数计算的的距离映射窗口X作为一个像素的图像,并返回距离图。灰度值像素u到最近的像素在u从X的距离相等。

Additionally, the return value  has an attribute "bdry" which is  also a pixel image. The grey values in "bdry" give the distance from each pixel to the bounding rectangle of the image.
此外,返回值的属性"bdry"这也是一个像素的图像。的灰度值"bdry"给的边界矩形的图像每个像素的距离。

If X is a binary pixel mask, the distance values computed are not the usual Euclidean distances. Instead the distance between two pixels is measured by the length of the shortest path connecting the two pixels. A path is a series of steps between neighbouring pixels (each pixel has 8 neighbours).  This is the standard "distance transform" algorithm of image processing (Rosenfeld and Kak, 1968; Borgefors, 1986).
如果X是一个二进制的像素面具,计算的距离值是不平常的欧氏距离。相反的两个像素之间的距离是通过最短的路径连接的两个像素的长度测量。路径是相邻像素(每个像素有8个邻居)之间的一系列的步骤。这是一个标准的“距离变换”的图像处理算法(罗森菲尔德和隔,1968年; Borgefors,1986)。

If X is a polygonal window, then exact Euclidean distances will be computed if discretise=FALSE. If discretise=TRUE then the window will first be converted to a binary pixel mask and the discrete path distances will be computed.
如果X是一个多边形窗口,然后将精确的欧氏距离计算,如果discretise=FALSE。如果discretise=TRUE然后窗口会先被转换为一个二进制像素掩模并且将被计算的离散的路径距离。

The arguments ... are passed to as.mask to control the pixel resolution.
这些参数...传递给as.mask控制像素的分辨率。

This function is a method for the generic distmap.
这个函数是一个方法的通用distmap。


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

A pixel image (object of class "im") whose greyscale values are the values of the distance map. The return value has an attribute "bdry" which is a pixel image.
像素的图像(类的对象"im"),其灰度值是距离映射的值。返回值属性"bdry"这是一个像素的图像。


(作者)----------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>




参考文献----------References----------

Distance transformations in digital images. Computer Vision, Graphics and Image Processing 34 (1986) 344&ndash;371.
Distance functions on digital pictures. Pattern Recognition 1 (1968) 33-61.

参见----------See Also----------

distmap, distmap.ppp, distmap.psp
distmap,distmap.ppp,distmap.psp


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


  data(letterR)
  U <- distmap(letterR)
  ## Not run: [#不运行:]
  plot(U)
  plot(attr(U, "bdry"))
  
## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-14 10:42 , Processed in 0.023428 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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