antsCopy: Copy Information of One Image to Another

antsCopyR Documentation

Copy Information of One Image to Another

Description

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

Usage

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)
img <- makeImage(c(10,10),rnorm(100))
img2 <- makeImage(c(10,10), rnorm(100))
img2 <- antsCopyOrigin(img, img2)

muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.