Description Usage Arguments Value Author(s) References See Also Examples
View source: R/dmri.tracking.R
Visualize the result from v.track.
r package rgl
is required.
1 | tractography(loc, vec)
|
loc |
Voxel coordinates that the reconstructed fiber go through |
vec |
Diffusion direction that used to reconstruct the fiber |
No return value. The reconstructed fiber is visualized on the opened rgl window.
Raymond Wong, Seungyong Hwang (Maintainer: syhwang@ucdavis.edu)
R. K. W. Wong, T. C. M. Lee, D. Paul, J. Peng and for the Alzheimer's Disease Neuroimaging Initiative. (2016) "Fiber Direction Estimation, Smoothing and Tracking in Diffusion MRI". The Annals of Applied Statistics, 10(3), 1137-1156.
The tracking result from v.track
can be used for tractography
in dmri.tracking
package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #Load an example output from the peak detection algorithm
load(system.file("extdata", "peakresult.rda", package = "dmri.tracking"))
str(peak.result) #Output from the peak detection algorithm
#Apply Tracking algorithm
result = v.track(v.obj = peak.result, max.line=500)
#Plot tracking result.
library(rgl)
open3d()
for (iind in (result$sorted.iinds[result$sorted.update.ind])){
cat(iind,"\n")
tractography(result$tracks1[[iind]]$inloc, result$tracks1[[iind]]$dir)
tractography(result$tracks2[[iind]]$inloc, result$tracks2[[iind]]$dir)
}
#An example to prepare v.obj is available in https://github.com/vic-dragon/dmri.tracking
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.