MriImage
objects noninteractively using an R graphics device. See viewImages
for an interactive alternative.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)
MriImage
objects.MriImage
object.images
, each element being "slice"
or "projection"
(or abbreviations), indicating which type of visualisation should be applied to each image.getColourScale
.x
, y
and z
, except that a point in 3 dimensions is specified. Must not be NA
for each axis
requested."internal"
for display on the default graphics device, or "png"
for creating PNG format image file(s). Abbreviations are fine.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."axial"
, "coronal"
or "sagittal"
will be added) to be used when device
is "png"
.device
is "png"
.NULL
for limits matching the range of the image data. Passed as the zlim
argument to image
.newMriImageByTrimming
.NULL
, the function will aim for a square grid.device
is "internal"
. NB: When the device
option is set to "png"
, ImageMagick is required by these functions.
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18.
viewImages
for an interactive alternative, and getColourScale
for details of how colour scales are specified. Also image
, which is used as the underlying plot function.