Learn R Programming

dti (version 0.6-0)

show3d-methods: Methods for Function `show3d' in Package `dti'

Description

The function provides 3D visualization of "dtiTensor" and "dtiIndices" objects using the "rgl"-package. Functionality of the rgl-package allows to rotate and zoom the displayed object.

Usage

## S3 method for class 'dtiTensor':
show3d(obj, nx=NULL, ny=NULL, nz=NULL, center=NULL, method=1, level=0, scale=.25, bgcolor="black", add=FALSE, subdivide=2, smooth=TRUE, maxobjects=729, \dots)
  ## S3 method for class 'dtiIndices':
show3d(obj, index="FA", nx=NULL, ny=NULL, nz=NULL, center=NULL, method=1, level=0, bgcolor="black", add=FALSE, lwd=1, \dots)

Arguments

obj
An object of class dtiTensor or dtiIndices
nx
Number of voxel in x-direction
ny
Number of voxel in y-direction
nz
Number of slices
center
Vector of length 3 specifying the center of the data cube (class dtiTensor) or center of display (class dtiIndices)
method
method==1 and method==2 specify two different color schemes for directional FA-maps.
level
Minimal FA value of tensors.
scale
Scale factor for the size of ellipsoids
bgcolor
Backgroundcolor for rgl-display
add
If true information is added to the current device, otherwise a new device is opened.
subdivide
Level of subdivisions for meshing of ellipsoids, see package rgl.
smooth
Use smooted surfaces, see package rgl.
maxobjects
Maximal size of data cube (in voxel) to display
index
Eiter "FA" for fractional anisotropy index or "GA" for geodesic anisotropy index.
lwd
Line width to use.
...
Additional parameters passed to function rgl.par from the rgl-package.

Value

  • The function returns the number of the current rgl-device.

See Also

dtiIndices-methods, dti.smooth, dtiTensor, dtiIndices

Examples

Run this code
demo(dti_art)

Run the code above in your browser using DataLab