pixellate.ppp(spatstat)
pixellate.ppp()所属R语言包:spatstat
Convert Point Pattern to Pixel Image
像素图像转换点模式
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Converts a point pattern to a pixel image. The value in each pixel is the number of points falling in that pixel, and is typically either 0 or 1.
转换点模式像素图像。在每个像素中的值是在该像素点的数目,通常是0或1。
用法----------Usage----------
## S3 method for class 'ppp'
pixellate(x, W=NULL, ..., weights = NULL, padzero=FALSE)
## S3 method for class 'ppp'
as.im(X, ...)
参数----------Arguments----------
参数:x,X
Point pattern (object of class "ppp").
点模式(类的对象"ppp")。
参数:...
Arguments passed to as.mask to determine the pixel resolution
参数传递给as.mask的来确定像素的分辨率
参数:W
Optional window mask (object of class "owin") determining the pixel raster.
可选的窗口掩码(类"owin")确定像素的光栅对象的。
参数:weights
Optional vector of weights associated with the points.
可选与点相关联的权重向量。
参数:padzero
Logical flag indicating whether to set pixel values to zero outside the window.
逻辑标志指示是否设置像素值为零以外的窗口。
Details
详细信息----------Details----------
The functions pixellate.ppp and as.im.ppp convert a spatial point pattern x into a pixel image, by counting the number of points (or the total weight of points) falling in each pixel.
的职能pixellate.ppp和as.im.ppp转换空间点图案x到一个像素的图像中,通过属于在每个像素中的点(或点的总重量计)的数量进行计数。
Calling as.im.ppp is equivalent to calling pixellate.ppp with its default arguments. Note that pixellate.ppp is more general than as.im.ppp (it has additional arguments for greater flexibility).
调用as.im.ppp相当于调用pixellate.ppp它的默认参数。需要注意的是pixellate.ppp更比as.im.ppp(它有额外的参数,以获得更大的灵活性)。
The functions as.im.ppp and pixellate.ppp are methods for the generic functions as.im and pixellate respectively, for the class of point patterns.
的功能as.im.ppp和pixellate.ppp是通用的功能的方法as.im和pixellate分别点模式之类的。
The pixel raster (in which points are counted) is determined by the argument W if it is present (for pixellate.ppp only). In this case W should be a binary mask (a window object of class "owin" with type "mask"). Otherwise the pixel raster is determined by extracting the window containing x and converting it to a binary pixel mask using as.mask. The arguments ... are passed to as.mask to control the pixel resolution.
像素栅格(点计算)是由参数W,如果存在的话(为pixellate.ppp只)。在这种情况下W应该是一个二进制掩码(一个窗口类的对象"owin"型"mask")。否则确定的像素栅格通过提取含有x和将其转换为一个二进制像素掩模使用as.mask的窗口。这些参数...传递给as.mask控制像素的分辨率。
If weights is NULL, then for each pixel in the mask, the algorithm counts how many points in x fall in the pixel. This count is usually either 0 (for a pixel with no data points in it) or 1 (for a pixel containing one data point) but may be greater than 1. The result is an image with these counts as its pixel values.
如果weights是NULL,然后掩码中的每个像素,该算法计算有多少个点x下降像素。此计数通常是0(在它没有数据点的像素)或1(含有一个数据点的像素),但也可以是大于1。其结果是一个作为其像素值的图像,这些计数。
If weights is given, it should be a numeric vector of the same length as the number of points in x. For each pixel, the algorithm finds the total weight associated with points in x that fall in the given pixel. The result is an image with these total weights as its pixel values.
如果weights是给定的,它应该是一个数值向量相同的长度的点的数量在x。对于每个像素,该算法发现与在x跌倒的在给定的象素的点相关联的总重量计。其结果是一个与这些总重量作为其像素值的图像。
By default (if zeropad=FALSE) the resulting pixel image has the same spatial domain as the window of the point pattern x. If zeropad=TRUE then the resulting pixel image has a rectangular domain; pixels outside the original window are assigned the value zero.
默认情况下(如果zeropad=FALSE)像素的图像具有相同的空间域的窗口,点模式x。如果zeropad=TRUE然后将所得的像素的图像具有矩形域;原来的窗口之外的像素被分配的值为零。
值----------Value----------
A pixel image (object of class "im").
像素的图像(类的对象"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----------
pixellate, im, as.im, density.ppp, smooth.ppp.
pixellate,im,as.im,density.ppp,smooth.ppp。
实例----------Examples----------
data(humberside)
plot(pixellate(humberside))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|