pixellate.owin(spatstat)
pixellate.owin()所属R语言包:spatstat
Convert Window to Pixel Image
转换窗口像素图像
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Convert a window to a pixel image by measuring the area of intersection between the window and each pixel in a raster.
通过测量的窗口和栅格中的每个像素的区域之间的交叉转换的像素图像的窗口。
用法----------Usage----------
## S3 method for class 'owin'
pixellate(x, W = NULL, ...)
参数----------Arguments----------
参数:x
Window (object of class "owin") to be converted.
窗口(类的对象"owin")进行转换。
参数:W
Optional. Window determining the pixel raster on which the conversion should occur.
可选。窗口确定的像素点阵的转换应该发生的。
参数:...
Optional. Extra arguments passed to as.mask to determine the pixel raster.
可选。额外的参数传递给as.mask,以确定像素的光栅。
Details
详细信息----------Details----------
This is a method for the generic function pixellate.
这是一个方法的通用函数pixellate。
It converts a window x into a pixel image, by measuring the amount of x that is inside each pixel.
它转换成一个窗口x到一个像素的图像中,由测量x的量是每个像素内。
(The related function as.im also converts x into a pixel image, but records only the presence or absence of x in each pixel.)
(相关的功能as.im也转换x到一个像素的图像,但只记录的存在或不存在的x在每个像素中。)
The pixel raster for the conversion is determined by the argument W and the extra arguments ....
像素栅格的转换是由参数W和额外的参数...。
If W is given, and it is a binary mask (a window of type "mask") then it determines the pixel raster.
如果W被给定,并且它是一个二进制掩模(类型的窗口"mask"),那么它确定的像素的栅格。
If W is given, but it is not a binary mask (it is a window of another type) then it will be converted to a binary mask using as.mask(W, ...).
如果W被给定,但它不是一个二进掩模(它是另一种类型的窗口),那么它会被转换为一个二进制掩模使用as.mask(W, ...)。
If W is not given, it defaults to as.mask(as.rectangle(x), ...)
W如果没有给出,它默认为as.mask(as.rectangle(x), ...)
In the second and third cases it would be common to use the argument dimyx to control the number of pixels. See the Examples.
在第二个和第三个的情况下这将是共同使用的参数dimyx控制的像素的数量。请参阅范例。
The algorithm then computes the area of intersection of each pixel with the window.
然后,该算法计算的相交的区域的各像素与该窗口。
The result is a pixel image with pixel entries equal to these intersection areas.
其结果是一个像素的图像的像素等于这些交叉区域的条目。
值----------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.ppp, pixellate, as.im
pixellate.ppp,pixellate,as.im
实例----------Examples----------
data(letterR)
plot(pixellate(letterR, dimyx=15))
W <- grow.rectangle(as.rectangle(letterR), 0.2)
plot(pixellate(letterR, W, dimyx=15))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|