antsCopy: Copy Information of One Image to Another

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
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

1
2
3
4
library(ANTsR)
img <- makeImage(c(10,10),rnorm(100))
img2 <- makeImage(c(10,10), rnorm(100))
img2 <- antsCopyOrigin(img, img2)

neuroconductor-releases/extrantsr documentation built on Dec. 10, 2019, 12:07 a.m.