as.matrix.im(spatstat)
as.matrix.im()所属R语言包:spatstat
Convert Pixel Image to Matrix or Array
图像像素转换成矩阵或数组
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Converts a pixel image to a matrix or an array.
像素图像转换成矩阵或数组。
用法----------Usage----------
## S3 method for class 'im'
as.matrix(x, ...)
## S3 method for class 'im'
as.array(x, ...)
参数----------Arguments----------
参数:x
A pixel image (object of class "im").
像素的图像(类的对象"im"“)。
参数:...
See below.
见下文。
Details
详细信息----------Details----------
The function as.matrix.im converts the pixel image x into a matrix containing the pixel values. It is handy when you want to extract a summary of the pixel values. See the Examples.
的功能as.matrix.im的像素的图像转换x到包含的象素值的矩阵。这是很方便的,当你想提取的像素值的摘要。请参阅范例。
The function as.array.im converts the pixel image to an array. By default this is a three-dimensional array of dimension n by m by 1. If the extra arguments ... are given, they will be passed to array, and they may change the dimensions of the array.
函数as.array.im像素的图像转换到一个数组中。默认情况下,这是一个三维数组的维nm1。如果额外的参数...是给定的,他们将被传递给array,他们可能会改变尺寸的数组。
值----------Value----------
A matrix or array.
矩阵或数组。
(作者)----------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----------
as.matrix.owin
as.matrix.owin
实例----------Examples----------
# artificial image[人工图像]
Z <- setcov(square(1))
M <- as.matrix(Z)
median(M)
## Not run: [#不运行:]
# plot the cumulative distribution function of pixel values[绘制的像素值的累积分布函数]
plot(ecdf(as.matrix(Z)))
## End(Not run)[#(不执行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|