##-------------
## Generate ODF volumes (GQI volume processing) for
## range of slices using deterministic find peaks algorithm
gqi.odfpeaks(rg=c(1,1), showglyph=FALSE)
## Show RGB maps for range of slices processed by gqi.odfpeaks()
rgbvolmap(fbase=tempdir(), rg=c(1,1))
## White background
rgbvolmap(fbase=tempdir(), rg=c(1,1), transparent=TRUE)
##-------------
## Process whole volume: generates NIfTI files
## data_gfa_gqi.nii.gz and data_V1_gqi.nii.gz
gqi.odfpeaks(rg=NULL)
## Visualization of RBG maps generated by vMF function "gqi.odfvmf"
## (cf. FSL/fslview tool)
rgbvolmap(fbase=tempdir(), rg=NULL, bview="coronal")Run the code above in your browser using DataLab