Learn R Programming

ANTsR (version 0.3.3)

renderSurfaceFunction: 3D surface-based rendering of volume images.

Description

Will use rgl to render a substrate (e.g. anatomical) and overlay image (e.g. functional).

Usage

renderSurfaceFunction(surfimg, funcimg, surfval = 0.5, basefval, offsetfval, smoothsval = 0, smoothfval = 0, blobrender = TRUE, alphasurf = 1, alphafunc = 1, outdir = "./", outfn = NA, mycol, physical = TRUE)

Arguments

surfimg
Input image to use as rendering substrate.
funcimg
Input list of images to use as functional overlays.
surfval
intensity level that defines isosurface
basefval
intensity level that defines lower threshold for functional image
offsetfval
intensity level that defines upper threshold for functional image
smoothsval
smoothing for the surface image
smoothfval
smoothing for the functional image
blobrender
render a blob as opposed to a surface patch
alphasurf
alpha for the surface contour
alphafunc
alpha value for functional blobs
outdir
output directory
outfn
output file name
mycol
name of color or colors
physical
boolean

Value

0 -- Success 1 -- Failure

See Also

plotBasicNetwork

Examples

Run this code
## Not run: 
#        mnit<-getANTsRData("mni")
#        mnit<-antsImageRead(mnit)
#        mnia<-getANTsRData("mnia")
#        mnia<-antsImageRead(mnia)
#        mnit<-thresholdImage( mnit, 1, max(mnit) )
#        mnia<-thresholdImage( mnia, 1, 2 )
#        brain<-renderSurfaceFunction( surfimg =list( mnit ) ,
#           list(mnia), alphasurf=0.1 ,smoothsval = 1.5 )
#        ## End(Not run)

Run the code above in your browser using DataLab