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

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

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

                                        Evaluate Logical Expression Involving Pixel Images and Return
                                         评估逻辑表达式,涉及像素的图像,并返回

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

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

Given a logical expression involving one or more pixel images, find all pixels where the expression is true, and assemble these pixels into a window.
给定一个逻辑表达式,涉及一个或多个像素的图片,找到的所有像素的表达是真实的,这些像素组合成一个窗口。


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


  solutionset(..., envir)



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

参数:...
An expression in the R language, involving one or more pixel images.
R语言表达的,涉及一个或多个像素的图像。


参数:envir
Optional. The environment in which to evaluate the expression.
可选。的环境中,计算表达式的。


Details

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

Given a logical expression involving one or more pixel images, this function will find all pixels where the expression is true, and assemble these pixels into a spatial window.
给定一个逻辑表达式,涉及一个或多个像素的图像,此功能会发现所有像素的表达是真实的,而这些像素组合成一个空间窗口。

Pixel images in spatstat are represented by objects of class "im" (see im.object). These are essentially matrices of pixel values, with extra attributes recording the pixel dimensions, etc.
像素的图像,在spatstat为代表的类的对象"im"(见im.object)。这些本质上的象素值的矩阵,用额外的属性记录的像素尺寸,等

Suppose X is a pixel image. Then eval.im(abs(X) > 3) will find all the pixels in X for which the pixel value is greater than 3 in absolute value, and return a window containing all these pixels.
假设X是一个像素的图像。 eval.im(abs(X) > 3)会发现所有的像素X的像素值是大于3的绝对值,并返回一个窗口,包含所有这些像素。

Suppose X and Y are two pixel images with compatible dimensions: they have the same number of pixels, the same physical size of pixels, and the same bounding box. Then eval.im(X > Y) will find all pixels for which the pixel value of X is greater than the corresponding pixel value of Y, and return a window containing these pixels.
假设X和Y与兼容的尺寸的两个像素的图像:它们具有相同数量的像素,像素的相同的物理尺寸,和相同的边界框。然后eval.im(X > Y)会发现所有像素的像素值X是Y,并返回一个窗口,其中包含这些像素的像素值大于相应的。

In general, expr can be any logical expression involving (a) the names of pixel images, (b) scalar constants, and (c) functions which are vectorised. See the Examples.
在一般情况下,expr可以是任何逻辑表达式,涉及(a)该名称的像素的图像,(二)的标量常数,和(c)的功能是向量化。请参阅范例。

The expression expr is evaluated by eval.im. The expression expr must be vectorised. There must be at least one pixel image in the expression. All images must have compatible dimensions.
的表达expr评价eval.im。必须向量化的表达expr。必须有在表达式中的至少一个像素的图像。所有的图像都必须有兼容的尺寸。


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

A spatial window (object of class "owin", see owin.object).
一个空间窗口(类的对象"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, owin.object, eval.im, levelset
im.object,owin.object,eval.im,levelset


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


  # test images[测试图像]
  X <- as.im(function(x,y) { x^2 - y^2 }, unit.square())
  Y <- as.im(function(x,y) { 3 * x + y  - 1}, unit.square())

  W <- solutionset(abs(X) > 0.1)
  W <- solutionset(X > Y)
  W <- solutionset(X + Y >= 1)

  area.owin(solutionset(X < Y))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-17 01:12 , Processed in 0.025261 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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