antsCopyImageInfo2.Rd
Copy origin, direction, and spacing from one antsImage
to another.
Opposite order of input relative to antsCopyImageInfo
antsCopyImageInfo2(target, reference)
Target image with reference header information.
img <- makeImage(c(10, 10), rnorm(100))
img2 <- makeImage(c(10, 10), rnorm(100))
img2 <- antsCopyImageInfo(img2, img)
testthat::expect_error(antsCopyImageInfo(img, 1))