Wraps antsSetOrigin/antsSetDirection/antsSetSpacing and antsGetOrigin/antsGetDirection/antsGetSpacing to copy the information over. Finer control than antsCopyImageInfo

antsCopyOrigin(reference, target)

antsCopyDirection(reference, target)

antsCopySpacing(reference, target)

Arguments

reference

antsImage object to get origin values from

target

antsImage object to copy origin values to

Value

target object of class antsImage

Examples

library(ANTsR)
#> Loading required package: ANTsRCore
#> #> Attaching package: ‘ANTsRCore’
#> The following objects are masked from ‘package:extrantsr’: #> #> origin, origin<-
#> The following objects are masked from ‘package:stats’: #> #> sd, var
#> The following objects are masked from ‘package:base’: #> #> all, any, apply, max, min, prod, range, sum
img <- makeImage(c(10,10),rnorm(100)) img2 <- makeImage(c(10,10), rnorm(100)) img2 <- antsCopyOrigin(img, img2)