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

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

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

                                        Convert Pixel Image from Numeric to Factor
                                         转换像素图像从数字因子

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

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

Transform the values of a pixel image from numeric values into a factor.
图像从数字值的像素值变换成一个因素。


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


  ## S3 method for class 'im'
cut(x, ...)



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

参数:x
A pixel image. An object of class "im".  
像素的图像。对象的类"im"。


参数:...
Arguments passed to cut.default. They determine the breakpoints for the mapping from numerical values to factor values. See cut.default.  
传递参数到cut.default。他们确定断点的数值因子值的映射。见cut.default。


Details

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

This simple function applies the generic cut operation to the pixel values of the image x. The range of pixel values is divided into several intervals, and each interval is associated with a level of a factor.  The result is another pixel image, with the same window and pixel grid as x, but with the numeric value of each pixel discretised by replacing it by the factor level.
这个简单的函数应用于通用的cut操作的像素值的图像x。被分成多个间隔的范围内的像素值,和每个时间间隔相关联的电平的一个因素。结果是另一个像素的图像,具有相同的窗口,像素网格作为x,但与由因子水平通过替换它离散化的每个像素的数字值。

This function is a convenient way to inspect an image and to obtain summary statistics. See the examples.
此功能是一个方便的方式来检查图像,并获得汇总统计数据。见的例子。

To select a subset of an image, use the subset operator [.im instead.
要选择图像的一个子集的子集,使用操作符[.im。


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

A pixel image (object of class "im") with  pixel values that are a factor. See im.object.
像素的图像(类的对象"im")的像素值是一个因素。见im.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----------

cut, im.object
cut,im.object


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


  # artificial image data[人工图像数据]
  Z <- setcov(square(1))

  Y <- cut(Z, 3)
  Y <- cut(Z, breaks=seq(0,1,length=5))

  # cut at the quartiles[切成四分位数]
  # (divides the image into 4 equal areas)[(将图像划分为4个相等的区域)]
  Y <- cut(Z, quantile(Z))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-13 18:15 , Processed in 0.025741 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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