split.im(spatstat)
split.im()所属R语言包:spatstat
Divide Image Into Sub-images
成子图像分割图片
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Divides a pixel image into several sub-images according to the value of a factor, or according to the tiles of a tessellation.
分割的像素的图像分成几个根据子图像的一个因素的值,或根据镶嵌的瓷砖。
用法----------Usage----------
## S3 method for class 'im'
split(x, f, ..., drop = FALSE)
参数----------Arguments----------
参数:x
Pixel image (object of class "im").
像素的图像(类的对象"im"“)。
参数:f
Splitting criterion. Either a tessellation (object of class "tess") or a pixel image with factor values.
分裂标准。无论是Tessellation(曲面细分)(类"tess")或像素的图像与系数的值对象。
参数:...
Ignored.
忽略。
参数:drop
Logical value determining whether each subset should be returned as a pixel images (drop=FALSE) or as a one-dimensional vector of pixel values (drop=TRUE).
逻辑值,该值确定是否应作为一个像素的图像(drop=FALSE),或作为一个一维的矢量的像素值(drop=TRUE)返回的每个子集。
Details
详细信息----------Details----------
This is a method for the generic function split for the class of pixel images. The image x will be divided into subsets determined by the data f. The result is a list of these subsets.
这是一种通用功能split之类的像素的图像。的图像x将会分为由数据f确定的子集。结果就是这些子集的列表。
The splitting criterion may be either
的分裂标准可能是
a tessellation (object of class "tess"). Each tile of the tessellation delineates a subset of the spatial domain.
镶嵌(类的对象"tess")。每一瓦片的镶嵌描绘的空间域的一个子集。
a pixel image (object of class "im") with factor values. The levels of the factor determine subsets of the spatial domain.
像素的图像(类的对象"im")因子值。因子的水平确定的空间域的子集。
If drop=FALSE (the default), the result is a list of pixel images, each one a subset of the pixel image x, obtained by restricting the pixel domain to one of the subsets. If drop=TRUE, then the pixel values are returned as numeric vectors.
如果drop=FALSE(默认值),其结果是像素的图像的列表,每一个像素的图像x限制象素域的一个子集,通过以下方式获得的一个子集。如果drop=TRUE,那么像素值被返回作为数字的向量。
值----------Value----------
If drop=FALSE, a list of pixel images (objects of class "im"). It is also of class "listof" so that it can be plotted immediately.
如果drop=FALSE,一个像素的图像列表的(对象类"im")。它也是类"listof",以便它可以立即被绘制。
If drop=TRUE, a list of numeric vectors.
如果drop=TRUE,数字向量的列表。
(作者)----------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----------
by.im, tess, im
by.im,tess,im
实例----------Examples----------
W <- square(1)
X <- as.im(function(x,y){sqrt(x^2+y^2)}, W)
Y <- dirichlet(runifpoint(12, W))
plot(split(X,Y))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|