commonGrid(spatstat)
commonGrid()所属R语言包:spatstat
Determine A Common Spatial Domain And Pixel Resolution
确定一个共同的空间域和像素分辨率
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Determine a common spatial domain and pixel resolution for several spatial objects such as images, masks, windows and point patterns.
确定一个共同的空间域和像素的分辨率,如图像,口罩,窗户和点图案的几个空间对象。
用法----------Usage----------
commonGrid(...)
参数----------Arguments----------
参数:...
Any number of pixel images (objects of class "im"), binary masks (objects of class "owin" of type "mask") or data which can be converted to binary masks by as.mask.
任何数目的像素的图像(类的对象的"im"),二进制掩模(类的对象的"owin"类型"mask")或数据可以被转换为二进制掩模由as.mask 。
Details
详细信息----------Details----------
This function determines a common spatial resolution and spatial domain for several spatial objects.
此功能决定了常见的几个空间对象的空间分辨率和空间域。
The arguments ... may be pixel images, binary masks, or other spatial objects acceptable to as.mask.
的参数...可能是像素的图像,二进制口罩,或其他空间物体可以接受的as.mask。
The common pixel grid is determined by inspecting all the pixel images and binary masks in the argument list, finding the pixel grid with the highest spatial resolution, and extending this pixel grid to cover the bounding box of all the spatial objects.
常见的像素网格是由检查所有像素的图像和二进制口罩在参数列表中,找到的最高空间分辨率的像素网格,并延长这个像素网格,覆盖所有的空间对象的边界框。
The return value is a binary mask M, representing the bounding box at the chosen pixel resolution. Use as.im(X, W=M) to convert a pixel image X to this new pixel resolution. Use as.mask(W, xy=M) to convert a window W to a binary mask at this new pixel resolution. See the Examples.
返回值是二进制掩码M,在所选择的像素分辨率的边界框。使用as.im(X, W=M)这个新的像素分辨率转换为像素的图像X。使用as.mask(W, xy=M)转换成的二进制掩码在一个窗口W这个新的像素分辨率。请参阅范例。
值----------Value----------
A binary mask (object of class "owin" and type "mask").
一个二进制掩码(对象类"owin"和类型"mask")的。
(作者)----------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----------
harmonise.im, compatible.im, as.im
harmonise.im,compatible.im,as.im
实例----------Examples----------
A <- setcov(square(1))
G <- density(runifpoint(42), dimyx=16)
H <- commonGrid(A, letterR, G)
newR <- as.mask(letterR, xy=H)
newG <- as.im(G, W=H)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|