sampledoc

ANTsR 0.0.0 documentation

antsImageRead

«  antsImageClone   ::   Contents   ::   antsImageWrite  »

antsImageRead

purpose:

Image Read

description:

Read an image file into an S4 object of class ‘antsImage’.

usage:

antsImageRead( filename , dimension = 3 , pixeltype = “float” )

examples:

# read an image from a file named 'imagefile.nii' into an image of pixeltype
# 'double' and dimensions '4'

img <- antsImageRead("imagefile.nii", dimension = 3)

img <- antsImageRead("imagefile.nii", dimension = 2)

img <- antsImageRead("imagefile.nii", dimension = 4, pixeltype = "double")

«  antsImageClone   ::   Contents   ::   antsImageWrite  »