Description Usage Arguments Value Author(s) See Also Examples
View source: R/renderSurfaceFunction.R
Will use rgl to render a substrate (e.g. anatomical) and overlay image (e.g. functional).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | renderSurfaceFunction(
surfimg,
funcimg,
surfval = 0.5,
basefval,
offsetfval,
smoothsval = 0,
smoothfval = 0,
blobrender = TRUE,
alphasurf = 1,
alphafunc = 1,
outdir = "./",
outfn = NA,
mycol,
physical = TRUE,
movieDuration = 6,
zoom = 1.1
)
|
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 |
movieDuration |
in seconds |
zoom |
magnification factor |
0 – Success
1 – Failure
Avants B, Kandel B
1 2 3 4 5 6 7 8 9 10 11 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.