raster.x(spatstat)
raster.x()所属R语言包:spatstat
Cartesian Coordinates for a Pixel Raster
直角坐标系的像素光栅
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Return the x and y coordinates of each pixel in a binary pixel image.
返回x和y在一个二进制像素的图像的各像素的坐标。
用法----------Usage----------
raster.x(w)
raster.y(w)
raster.xy(w)
参数----------Arguments----------
参数:w
A window (an object of class "owin") of type "mask" representing a binary pixel image.
一个窗口(对象类"owin")类型"mask"代表一个二进制像素的图像。
Details
详细信息----------Details----------
The argument w should be a window (an object of class "owin", see owin.object for details). A window of type "mask" represents a binary pixel image.
参数w应该是一个窗口(类的一个对象"owin",看到owin.object的详细信息)。一个窗口类型"mask"表示二进制像素的图像。
The functions raster.x and raster.y return a matrix of the same dimensions as the binary pixel image itself, with entries giving the x coordinate (for raster.x) or y coordinate (for raster.y) of each pixel in the image.
的职能raster.x和raster.y返回相同的尺寸的二进制像素的图像本身的矩阵,得到x坐标(raster.x)的条目或y 在图像中的每个像素的坐标(raster.y)。
The function raster.xy returns a list with components x and y which are numeric vectors of equal length containing the pixel coordinates.
函数raster.xy返回一个列表的组件x和y这是数字包含的像素坐标向量的长度相等。
值----------Value----------
raster.x and raster.y return a matrix of the same dimensions as the pixel grid in w, and giving the value of the x (or y) coordinate of each pixel in the raster.
raster.x和raster.y返回一个矩阵,并给予相同尺寸的像素网格w值x(y)坐标每个像素中的栅格。
raster.xy returns a list with components x and y which are numeric vectors of equal length containing the pixel coordinates.
raster.xy返回一个列表的组件x和y这是数字包含的像素坐标向量的长度相等。
(作者)----------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----------
owin, as.mask
owin,as.mask
实例----------Examples----------
u <- owin(c(-1,1),c(-1,1)) # square of side 2[平方方2]
w <- as.mask(u, eps=0.01) # 200 x 200 grid[200×200网格]
X <- raster.x(w)
Y <- raster.y(w)
disc <- owin(c(-1,1), c(-1,1), mask=(X^2 + Y^2 <= 1))
## Not run: plot(disc)[#未运行图(光盘)]
# approximation to the unit disc[单位圆盘逼近]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|