streamxform: transform 3D points using one or more CMTK registrations

Description Usage Arguments Details Examples

View source: R/RcppExports.R

Description

transform 3D points using one or more CMTK registrations

Usage

1
2
streamxform(points, reglist, inversionTolerance = 1e-08,
  affineonly = FALSE)

Arguments

points

an Nx3 matrix of 3D points

reglist

A character vector specifying registrations. See details.

inversionTolerance

the precision of the numerical inversion when transforming in the inverse direction.

affineonly

Whether to apply only the affine portion of transforms default FALSE.

Details

To transform points from sample to reference space, you will need to use the inverse transformation. This can be achieved by preceding the registration with a --inverse flag. When multiple registrations are being used the are ordered from sample to reference brain.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
m=matrix(rnorm(30,mean = 50), ncol=3)
reg=system.file("extdata","cmtk","FCWB_JFRC2_01_warp_level-01.list", package='cmtkr')
# from reference to sample
streamxform(m, reg)

# from sample to reference
streamxform(m, c("--inverse", reg))

# concatenating 3 registrations to map S -> B1 -> B2 -> T
# the first two registrations are inverted, the last is not.
streamxform(m, c("--inverse", StoB1, "--inverse", B1toB2, TtoB2))

## End(Not run)

jefferis/cmtkr documentation built on Sept. 13, 2019, 1:56 a.m.