Learn R Programming

tractor.base (version 2.5.0)

viewImages: A simple interactive viewer for MriImage objects

Description

The viewImages function provides a simple interactive viewer for MriImage objects. 3D and 4D images may be used.

Usage

viewImages(images, colourScales = NULL, point = NULL, interactive = TRUE,
    crosshairs = TRUE, orientationLabels = TRUE, infoPanel = defaultInfoPanel,
    ...)

defaultInfoPanel(point, data, imageNames)

Arguments

images
An MriImage object, or list of MriImage objects.
colourScales
A list of colour scales to use for each image, which will be recycled to the length of images. See getColourScale for details. The default is to use greyscale.
point
For viewImages, a length 3 integer vector giving the initial location of the crosshairs, in voxels. For defaultInfoPanel, the current location of the crosshairs.
interactive
A single logical value. If TRUE, the plot is interactive.
crosshairs
A single logical value. If TRUE, the crosshairs are displayed.
orientationLabels
A single logical value. If TRUE, orientation labels are displayed.
infoPanel
A function with at least three arguments, which must plot something to fill the bottom-right panel of the viewer after each change of crosshair location. The three mandatory arguments correspond to the current location in the image, the image values at th
...
Additional arguments to infoPanel.
data
A list giving the data value(s) at the current crosshair location in each image displayed.
imageNames
A character vector giving a name for each image displayed.

Value

  • These functions are called for their side effects.

References

Please cite the following reference when using TractoR in your work:

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. http://www.jstatsoft.org/v44/i08/.

See Also

getColourScale