tile(EBImage)
tile()所属R语言包:EBImage
Tiling/untiling images
平铺/ untiling图像
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a sequence of frames, tile generates a single image with frames tiled. untile is the inverse function and divides an image into a sequence of images.
鉴于帧序列,tile生成帧平铺的单幅图像。 untile是反函数和图像分为一个图像序列。
用法----------Usage----------
tile(x, nx=10, lwd=1, fg.col="#E4AF2B", bg.col="gray")
untile(x, nim, lwd=1)
参数----------Arguments----------
参数:x
An Image object, an array or a list of these objects.
Image对象,这些对象的一个数组或列表。
参数:nx
The number of tiled images in a row.
一排平铺图像的数量。
参数:lwd
The width of the grid lines between tiled images, can be 0.
平铺图像之间的网格线的宽度,可以是0。
参数:fg.col
The color of the grid lines.
网格线的颜色。
参数:bg.col
The color of the background for extra tiles.
额外的瓷砖背景的颜色。
参数:nim
A numeric vector of 2 elements for the number of images in both directions.
2在两个方向上的图像元素的一个数值向量。
Details
详情----------Details----------
After object segmentation, tile is a useful addition to stackObjects to have an overview of the segmented objects.
对象分割后,tilestackObjects分割对象的概述是一个有益的补充。
值----------Value----------
An Image object or an array, containing the tiled/untiled version of x.
一个Image对象或数组,包含x的平铺/未平铺版本。
作者(S)----------Author(s)----------
Oleg Sklyar, <a href="mailto sklyar@ebi.ac.uk">osklyar@ebi.ac.uk</a>, 2006-2007
参见----------See Also----------
stackObjects
stackObjects
举例----------Examples----------
## make a set of blurred Lenas[#一套模糊Lenas]
lena = readImage(system.file("images", "lena-color.png", package="EBImage"))
x = resize(lena, 128, 128)
xt = list()
for (t in seq(0.1, 5, len=9)) xt=c(xt, list(blur(x, s=t)))
xt = combine(xt)
if (interactive()) display(xt, title='Blurred Lenas')
## tile[#瓷砖]
xt = tile(xt, 3)
if (interactive()) display(xt, title='Tiled Lenas')
## untile[#untile]
xu = untile(lena, c(3, 3))
if (interactive()) display(xu, title='Lena blocks')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|