Learn R Programming

tractor.base (version 2.3.0)

newMriImageWithDataRepresentation: Convert between image data storage conventions

Description

This function returns a version of its first argument using the specified data representation.

Usage

newMriImageWithDataRepresentation(image, representation = c("dense", "coordlist"))

Arguments

image
An MriImage object.
representation
A character string specifying the required data representation.

Value

  • A version of image with using the specified data representation, i.e. an array (with representation="dense") or a SparseArray (with representation="coordlist").

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

MriImage, SparseArray, array