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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/renderSurfaceFunction.R

Description

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

Usage

 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
)

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

movieDuration

in seconds

zoom

magnification factor

Value

0 – Success
1 – Failure

Author(s)

Avants B, Kandel B

See Also

plotBasicNetwork

Examples

 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)

neuroconductor-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.