View source: R/antsrTransform_class.R
readAntsrTransform | R Documentation |
read a transform from file
readAntsrTransform(filename, dimension = NA, precision = "float")
filename |
filename of transform |
dimension |
spatial dimension of transform |
precision |
numerical precision of transform |
antsrTransform
trans <- c(3, 4, 5)
tx <- createAntsrTransform(type = "Euler3DTransform", translation = trans)
txfile <- tempfile(fileext = ".mat")
writeAntsrTransform(tx, txfile)
tx2 <- readAntsrTransform(txfile)
testthat::expect_error(readAntsrTransform(txfile, 2), "space dim")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.