Description Usage Arguments Details Examples
transform 3D points using one or more CMTK registrations
1 2 | streamxform(points, reglist, inversionTolerance = 1e-08,
affineonly = FALSE)
|
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 |
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.