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

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

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

                                        Level Set of a Pixel Image
                                         像素图像的水平集

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

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

Given a pixel image, find all pixels which have values less than a specified threshold value (or greater than a threshold, etc), and assemble these pixels into a window.
给定像素的图像,具有值小于指定的阈值(或大于一个阈值,等)中找到的所有象素,并组装到窗口中的这些像素。


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


  levelset(X, thresh, compare="<=")



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

参数:X
A pixel image (object of class "im") </table>
像素图像(对象类“IM”)</ TABLE>


参数:thresh
Threshold value. A single number or value compatible with the pixel values in X </table>
阈值。一个单一的数量或价值兼容的像素值X </表>


参数:compare
Character string specifying one of the comparison operators "<", ">", "==", "<=", ">=", "!=".   
字符串的比较操作符指定一个"<", ">", "==", "<=", ">=", "!="。


Details

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

If X is a pixel image with numeric values, then levelset(X, thresh) finds the region of space where the pixel values are less than or equal to the threshold value thresh. This region is returned as a spatial window.
如果X是一个与数字值的像素的图像,然后levelset(X, thresh)发现的空间区域,其中的象素值是小于或等于阈值thresh。返回该区域的一个空间窗口。

The argument compare specifies how the pixel values should be compared with the threshold value. Instead of requiring pixel values to be less than or equal to thresh, you can specify that they must be less than (<), greater than (>), equal to (==), greater than or equal to (>=), or not equal to (!=) the threshold value thresh.
参数compare指定如何应的象素值与阈值相比较。而不是要求的像素值小于或等于thresh,你可以指定它们必须小于(<),大于(>),等于(==),大于或等于(>=),或不等于(!=)的阈值thresh。

If X has non-numeric pixel values (for example, logical or factor values) it is advisable to use only the comparisons == and !=, unless you really know what you are doing.
如果X非数字的像素值(例如,逻辑或因子值),建议只使用比较==和!=,除非你真的知道你在做什么。

For more complicated logical comparisons, see solutionset.
对于更复杂的逻辑比较,看solutionset。


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

A spatial window (object of class "owin", see owin.object) containing the pixels satisfying the constraint.
一个空间窗口(类的对象"owin",owin.object)包含的像素满足约束。


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

im.object, as.owin, solutionset.
im.object,as.owin,solutionset。


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


  # test image[测试图像]
  X <- as.im(function(x,y) { x^2 - y^2 }, unit.square())

  W <- levelset(X, 0.2)
  W <- levelset(X, -0.3, ">")

  # compute area of level set[计算面积的水平集]
  area.owin(levelset(X, 0.1))

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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