Learn R Programming

ANTsR (version 0.7.2.0)

fsl2antsrTransform: fsl2antsrTransform

Description

Convert an FSL linear transform to an antsrTransform

Usage

fsl2antsrTransform(matrix, reference, moving)

Arguments

matrix

4x4 matrix of parameters

reference,

target image read in as antsImage

moving

image, read in as antsImage

Examples

Run this code
# NOT RUN {
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)

# }

Run the code above in your browser using DataLab