# NOT RUN {
#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.
# }
# NOT RUN {
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)
}
# }
# NOT RUN {
#An example to prepare v.obj is available in https://github.com/vic-dragon/dmri.tracking
# }
Run the code above in your browser using DataLab