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

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

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

                                        Class of Images
                                         类图像

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

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

A class "im" to represent a two-dimensional pixel image.
A类"im"代表一个两维的像素的图像。


Details

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

An object of this class represents a two-dimensional pixel image. It specifies
的这个类的对象代表一个两维的像素的图像。它指定

the dimensions of the rectangular array of pixels
的尺寸的矩形的像素阵列

x and y coordinates for the pixels
x和y坐标的像素

a numeric value (“grey value”) at each pixel
一个数字值(“灰度值”),在每个像素

If X is an object of type im, it contains the following elements:
如果X是一个类型im的对象,它包含以下内容:

Users are strongly advised not to manipulate these entries directly.
我们强烈建议用户不要直接操作这些项目。

Objects of class "im" may be created by the functions im and as.im. Image objects are also returned by various functions including distmap, Kmeasure, setcov,  eval.im and cut.im.
可以创建对象的类"im"的功能im和as.im。图像对象也传回的各种功能,包括distmap,Kmeasure,setcov,eval.im和cut.im。

Image objects may be displayed using the methods plot.im, image.im, persp.im and contour.im. There are also methods  print.im for printing information about an image, summary.im for summarising an image, mean.im for calculating the average pixel value,  hist.im for plotting a histogram of pixel values, quantile.im for calculating quantiles of pixel values, and cut.im for dividing the range of pixel values into categories.
Image对象使用的方法可能会显示plot.im,image.im,persp.im和contour.im。还有一些方法print.im印刷有关下列内容的信息的图像,summary.im总结图像,mean.im用于绘图的像素值的直方图,用于计算的平均像素值,hist.im ,quantile.im用于计算的象素值的分位数,并cut.im用于划分的范围的像素值进行分类。

Pixel values in an image may be extracted using the subset operator [.im. To extract all pixel values from an image object, use as.matrix.im. The levels of a factor-valued image can be extracted and changed with levels and levels<-.
可提取的图像中的像素值,使用的子集运算符[.im。为了提取图像对象的所有像素值,使用as.matrix.im。可以提取和水平的一个因素值图像,改变了levels和levels<-。

Calculations involving one or more images (for example, squaring all the pixel values in an image, converting numbers to  factor levels, or  subtracting one image from another) can often be done easily using eval.im. To find all pixels satisfying a certain constraint, use solutionset.
计算涉及一个或多个图像(例如,图像中的所有像素值平方,将数字转换成因子水平,或从另一个中减去一个图像),通常可以容易地进行使用eval.im。要找到所有的像素满足一定的约束,使用solutionset。

Note carefully that the entry v[i,j] gives the pixel value at the location (xcol[j],yrow[i]. That is, the row index of the matrix v corresponds to increasing y coordinate, while the column index of mat corresponds to increasing x coordinate. Thus yrow has one entry for each row of v and xcol has one entry for each column of v. Under the usual convention in R, a correct display of the image would be obtained by transposing the matrix, e.g. image.default(xcol, yrow, t(v)), if you wanted to do it by hand.
请注意该条目v[i,j]给出的像素值的位置处(xcol[j],yrow[i]。也就是说,矩阵v对应于y坐标增加的行索引,而列索引mat对应于增加的x坐标。因此yrow具有一个条目的每一行的v和xcolv为每个列都有一个条目。在研发,按照通常的惯例,正确显示的图像将通过转置矩阵,例如: image.default(xcol, yrow, t(v)),如果你想做到这一点的手。


警告----------Warnings----------

The internal representation of images is likely to change in future releases of spatstat. Do not address the entries in an image directly. To extract all pixel values from an image object, use as.matrix.im.
图像的内部表示可能会发生变化,在未来版本的spatstat。不要称呼直接图像中的条目。为了提取图像对象的所有像素值,使用as.matrix.im。


(作者)----------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, as.im, plot.im, persp.im, eval.im, [.im
im,as.im,plot.im,persp.im,eval.im,[.im

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-15 03:38 , Processed in 0.025661 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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