visualisation(tractor.base)
visualisation()所属R语言包:tractor.base
Visualise MriImage objects
。幻想MriImage对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Visualise MriImage objects.
。幻想MriImage对象。
用法----------Usage----------
createCombinedGraphics(images, modes, colourScales, axes = 1:3, sliceLoc = NULL,
device = c("internal", "png"), alphaImages = NULL,
prefix = "image", zoomFactor = 1, filter = "Mitchell",
windowLimits = NULL, clearance = NULL, nColumns = NULL)
createProjectionGraphic(image, axis, device = c("internal", "png"), colourScale = 1,
add = FALSE, file = NULL, zoomFactor = 1, filter = "Mitchell",
windowLimits = NULL)
createSliceGraphic(image, x = NA, y = NA, z = NA, device = c("internal", "png"),
colourScale = 1, add = FALSE, file = NULL, zoomFactor = 1,
filter = "Mitchell", windowLimits = NULL)
createContactSheetGraphic(image, axis, device = c("internal", "png"), colourScale = 1,
add = FALSE, file = NULL, zoomFactor = 1, filter = "Mitchell",
windowLimits = NULL, clearance = NULL, nColumns = NULL)
参数----------Arguments----------
参数:images
A list of MriImage objects.
的名单MriImage对象。
参数:image
A single MriImage object.
一个单一的MriImage对象。
参数:modes
A character vector of the same length as images, each element being "slice" or "projection" (or abbreviations), indicating which type of visualisation should be applied to each image.
images,每个元素是"slice"或"projection"(或缩写),指示哪种类型的可视化,应适用于每个图像的长度相同的字符的矢量。
参数:colourScale, colourScales
A single colour scale definition, or a list in the plural case. See Details.
的单颜色标度的定义,或在多个情况下的列表。查看详细信息。
参数:axis, axes
A vector of axes along which slice/projection images should be created. 1 is left-right, 2 is anterior-posterior, 3 is superior-inferior.
轴的矢量沿着这片/投影图像应建立。图1是图2是左 - 右,前 - 后,图3是优越的劣势。
参数:x, y, z
Integer vectors, each of length 1. Exactly one of these must be specified to indicate the plane of interest.
整数向量,每一个的长度为1。必须恰好是其中之一必须指定,表示飞机的兴趣。
参数:sliceLoc
Like x, y and z, except that a point in 3 dimensions is specified. Must not be NA for each axis requested.
喜欢x,y和z,除了在3维的点被指定。一定不能NA每个axis要求。
参数:device
Either "internal" for display on the default graphics device, or "png" for creating PNG format image file(s). Abbreviations are fine.
是"internal"显卡的默认设备上显示,或"png"创建PNG格式的图像文件(S)。缩略语的罚款。
参数:alphaImages
A list of MriImage objects to be used as transparency masks. Must be the same length as images if not NULL. NULL values in the list indicate no mask.
列表:MriImage对象被用来作为透明度口罩。必须是相同的长度,images如果NULL的。 NULL列表中的值表示没有面具。
参数:prefix, file
A file name or prefix (to which "axial", "coronal" or "sagittal" will be added) to be used when device is "png".
文件名或前缀("axial","coronal"或"sagittal"将被添加),用于device是"png"。
参数:zoomFactor
Factor by which to enlarge the image. Applies only when device is "png".
将图像放大的因素。仅适用于device是"png"。
参数:filter
Interpolation filter to be used by ImageMagick.
ImageMagick的要使用的插值滤波器。
参数:windowLimits
Numeric vector of length 2 giving the limits of the colour scale, or NULL for limits matching the range of the image data. Passed as the zlim argument to image.
长度为2的数值向量给色阶的极限,或NULL匹配的范围内的图像数据的限制。作为zlimimage参数通过。
参数:clearance
Number of voxels' clearance to leave around each slice image in the contact sheet. Passed to newMriImageByTrimming.
体素“通关离开的联系表中的每个切片图像的数目。传递到newMriImageByTrimming。
参数:nColumns
Number of slices per row in the contact sheet grid. If NULL, the function will aim for a square grid.
接触片网格中每行的片数。如果NULL,该函数将目标一个正方形网格。
参数:add
Overlay the graphic on a previous one. Used only when device is "internal".
一前一叠加的图形。仅用于时device是"internal"。
Details
详细信息----------Details----------
These functions create 2D visualisations of 3D images by slicing or maximum intensity projection.
这些函数创建的二维可视化的三维图像切片或最大强度投影。
Colour scales can be specified in any of three ways. Firstly, by a single number, representing a predefined colour scale. Currently valid values are 1 (greyscale, black background), 2 (red to yellow heat scale, red background), 3 (blue to red rainbow scale, blue background) and 4 (blue to white to red diverging scale, white background). Secondly, a single colour name can be given (see colours); in this case the background will be black. This is useful for binary images. Thirdly and most flexibly, a list with two named elements can be given: colours, a vector of colours representing the colour scale, perhaps created using rgb; and background, a single colour representing the background.
三种方式中,可以指定颜色尺度。首先,由一个单一的数字,代表一个预定义的颜色规模。目前有效的值是1(灰度,黑色背景),2(红色,黄热规模,红色背景),3(蓝色,红色的彩虹规模,蓝色背景)和4(蓝色,白色,红色,不同的规模,白色背景)。其次,单一颜色的名称,可以(colours),在这种情况下,背景是黑色的。为二进制图像,这是非常有用的。第三,也是最灵活的是,有两个命名的元素的列表可以colours的代表色标颜色,矢量,也许使用rgb和background,一个单一的颜色,代表的背景。
NB: When the device option is set to "png", ImageMagick is required by these functions.
注意:,当device选项设置为"png"的,ImageMagick是需要这些功能。
值----------Value----------
These functions are called for their side effects.
这些函数被称为他们的副作用。
(作者)----------Author(s)----------
Jon Clayden
参考文献----------References----------
参见----------See Also----------
image, colours, rgb
image,colours,rgb
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|