antsCopyImageInfo.Rd
Copy origin, direction, and spacing from one antsImage to another
antsImage
antsCopyImageInfo(reference, target)
image object of S4 class antsImage to get values from.
image object of S4 class antsImage to copy values to.
Target image with reference header information.
img <- makeImage(c(10, 10), rnorm(100)) img2 <- makeImage(c(10, 10), rnorm(100)) img2 <- antsCopyImageInfo(img, img2) testthat::expect_error(antsCopyImageInfo(img, 1))