make3ViewPNG: Rotate an existing 3d window into different views.

View source: R/make3ViewPNG.R

make3ViewPNGR Documentation

Rotate an existing 3d window into different views.

Description

The make3ViewPNG function rotates the existing viewport according to 3 different rotation matrices passed in by the user. The output of these 3 views is munged together along the left/right edge and written to a png file.

Usage

make3ViewPNG(rotationView1, rotationView2, rotationView3, fnprefix)

Arguments

rotationView1

Leftmost view

rotationView2

Center view

rotationView3

Rightmost view

fnprefix

Output file name prefix.

Value

NA

Author(s)

Avants BB

Examples

## Not run: 
bm <- getMask(antsImageRead(getANTsRData("ch2")))
brain <- renderSurfaceFunction(
  surfimg = list(bm),
  alphasurf = 0.1, smoothsval = 1.5
)
make3ViewPNG(diag(4), diag(4), diag(4), tempfile(fileext = ".png"))

## End(Not run)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.