channel(EBImage)
channel()所属R语言包:EBImage
Color and image color mode conversions
色彩和图像的色彩模式转换
译者:生物统计家园网 机器人LoveR
描述----------Description----------
channel handles color space conversions between image modes. rgbImage combines Grayscale images into a Color one.
channel处理图像模式之间的色彩空间转换。 rgbImage到Grayscale1结合Color图像。
用法----------Usage----------
channel(x, mode)
rgbImage(red, green, blue)
参数----------Arguments----------
参数:x
An Image object or an array.
Image对象或数组。
参数:mode
A character value specifying the target mode for conversion. See Details.
指定一个字符值转换的目标模式。查看详细信息。
参数:red, green, blue
Image objects in Grayscale color mode or arrays of the same dimension. If missing, a black image will be used.
ImageGrayscale颜色模式或同一维度的数组对象。如果缺少一个黑色的图像将被使用。
Details
详情----------Details----------
Conversion modes:
转换模式:
rgb Converts a Grayscale image or an array
rgbGrayscale图像或一个数组转换
gray, grey Converts a Color image into a
gray, grey转换成Color形象
red, green, blue Extracts the red, green or blue channel from a Color image. Returns a
red, green, blue提取red,green或blueColor形象的渠道。返回一个
asred, asgreen, asblue Converts a Grayscale
asred, asgreen, asblueGrayscale转换
channel changes the pixel intensities, unlike colorMode which just changes the way that EBImage should render an image,
channel改变像素的强度,不像colorMode这只是改变了方式,EBImage应该呈现图像,
值----------Value----------
An Image object or an array.
Image对象或数组。
作者(S)----------Author(s)----------
Oleg Sklyar, <a href="mailto sklyar@ebi.ac.uk">osklyar@ebi.ac.uk</a>
参见----------See Also----------
colorMode
colorMode
举例----------Examples----------
x = readImage(system.file("images", "shapes.png", package="EBImage"))
if (interactive()) display(x)
y = channel(x, 'asgreen')
if (interactive()) display(y)
## rgbImage[#rgbImage]
x = readImage(system.file('images', 'nuclei.tif', package='EBImage'))
y = readImage(system.file('images', 'cells.tif', package='EBImage'))
if (interactive()) display(x, title='Cell nuclei')
if (interactive()) display(y, title='Cell bodies')
cells = rgbImage(green=1.5*y, blue=x)
if (interactive()) display(cells, title='Cells')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|