rgbim(spatstat)
rgbim()所属R语言包:spatstat
Create Colour-Valued Pixel Image
颜色值的像素图片
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Creates an object of class "im" representing a two-dimensional pixel image whose pixel values are colours.
创建类的一个对象"im"代表一个两维的像素的图像,其像素值是颜色。
用法----------Usage----------
rgbim(R, G, B, maxColorValue=255)
hsvim(H, S, V)
参数----------Arguments----------
参数:R,G,B
Pixel images (objects of class "im") or constants giving the red, green, and blue components of a colour, respectively.
像素的图像(对象类"im")或常数分别发出的红色,绿色和蓝色分量的彩色。
参数:maxColorValue
Maximum colour value for R,G,B.
最大颜色值R,G,B。
参数:H,S,V
Pixel images (objects of class "im") or constants giving the hue, saturation, and value components of a colour, respectively.
像素图像(类"im")或常量的颜色的色调,饱和度和价值的成分,分别的对象。
Details
详细信息----------Details----------
These functions take three pixel images, with real or integer pixel values, and create a single pixel image whose pixel values are colours recognisable to R.
这些功能需要3个像素的图像,实数或整数像素值,并创建一个单一的像素的图像的像素值的颜色识别R.
Some of the arguments may be constant numeric values, but at least one of the arguments must be a pixel image. The image arguments should be compatible (in array dimension and in spatial position).
有些参数可以是恒定的数值,但的参数中的至少一个必须是一个像素的图像。应该是兼容的图像参数(阵列尺寸和空间位置)。
rgbim calls rgb to compute the colours, while hsvim calls hsv. See the help for the relevant function for more information about the meaning of the colour channels.
rgbim调用rgb计算的颜色,而hsvimhsv的。相关功能的含义的颜色通道的更多信息,请参阅帮助。
(作者)----------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----------
im.object, rgb, hsv.
im.object,rgb,hsv。
See colourtools for additional colour tools.
见colourtools额外的色彩工具。
实例----------Examples----------
# create three images with values in [0,1][创建三个图像的值在[0,1]]
X <- setcov(owin())
X <- eval.im(pmin(1,X))
Y <- as.im(function(x,y){(x+1)/2}, W=as.owin(X))
Z <- as.im(function(x,y){(y+1)/2}, W=as.owin(X))
RGB <- rgbim(X, Y, Z, 1)
HSV <- hsvim(X, Y, Z)
plot(RGB, valuesAreColours=TRUE)
plot(HSV, valuesAreColours=TRUE)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|