readAntsrTransform.Rd
read a transform from file
readAntsrTransform(filename, dimension = NA, precision = "float")
antsrTransform
trans <- c(3, 4, 5)
tx <- createAntsrTransform(type = "Euler3DTransform", translation = trans)
txfile <- tempfile(fileext = ".mat")
writeAntsrTransform(tx, txfile)
#> [1] TRUE
tx2 <- readAntsrTransform(txfile)
testthat::expect_error(readAntsrTransform(txfile, 2), "space dim")