##-------------
## Generate ODF volumes (GQI volume processing) for
## range of slices using deterministic find peaks algorithm
sph.odfpeaks(rg=c(1,1), bview="coronal", showglyph=FALSE)
## Show RGB maps for range of slices processed by sph.odfpeaks()
rgbvolmap(fbase=tempdir())
##-------------
## Process whole volume: generate NIfTI files
## data_gfa_sph.nii.gz and data_V1_sph.nii.gz
sph.odfpeaks(rg=NULL)
rgbvolmap(fbase=tempdir(), rg=NULL, bview="coronal")
##-------------
## Show reconstructed glyphs in ODF processing
## for principal direction determination
sph.odfpeaks(rg=c(1,1), bview="coronal", showglyph=TRUE)
Run the code above in your browser using DataLab