Learn R Programming

ANTsR (version 0.3.3)

antsCopyImageInfo: Copy header info

Description

Copy origin, direction, and spacing from one antsImage to another

Usage

antsCopyImageInfo(reference, target)

Arguments

reference
image object of S4 class antsImage to get values from.
target
image object of S4 class antsImage to copy values to.

Value

Target image with reference header information.

Examples

Run this code

img <- makeImage(c(10,10),rnorm(100))
img2 <- makeImage(c(10,10), rnorm(100))
img2 <- antsCopyImageInfo(img, img2)

Run the code above in your browser using DataLab