Description Usage Arguments Author(s) Examples
View source: R/fsl2antsrTransform.R
Convert an FSL linear transform to an antsrTransform
1 | fsl2antsrTransform(matrix, reference, moving)
|
matrix |
4x4 matrix of parameters |
reference, |
target image read in as antsImage |
moving |
image, read in as antsImage |
JT Duda
1 2 3 4 5 | fslMat = matrix(0,4,4)
diag(fslMat) = rep(1,4)
fslMat[1:3,4] = c(2,3,4)
img = antsImageRead(getANTsRData("ch2"))
tx = fsl2antsrTransform(fslMat, img, img)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.