sampledoc

ANTsR 0.0.0 documentation

as.antsImage

«  antsRegistration   ::   Contents   ::   as.array  »

as.antsImage

purpose:

numeric matrix/array to antsImage

description:

Create an antsImage object from a numeric matrix or numeric array .

usage:

as.antsImage( object [, pixeltype] [, spacing] [, origin] )

examples:

# create an image from a numeric array with details as shown ; here the
# image pixeltype is assumed to be 'double'

arr = array(c(1:1000), dim = c(10, 10, 10))

img = as.antsImage(arr, spacing = c(1.2, 1.2, 2), origin = c(0, 0, 0))

«  antsRegistration   ::   Contents   ::   as.array  »