View source: R/fsl2antsrTransform.R
fsl2antsrTransform | R Documentation |
Convert an FSL linear transform to an antsrTransform
fsl2antsrTransform(matrix, reference, moving)
matrix |
4x4 matrix of parameters |
reference |
target image read in as antsImage |
moving |
image, read in as antsImage |
JT Duda
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.