Convert an FSL linear transform to an antsrTransform

fsl2antsrTransform(matrix, reference, moving)

Arguments

matrix

4x4 matrix of parameters

reference,

target image read in as antsImage

moving

image, read in as antsImage

Examples

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)