Learn R Programming

ANTsR (version 1.0)

antsImageWrite: Image Write

Description

Write an image object of S4 class 'antsImage' to a file.

Usage

antsImageWrite( image , filename )

Arguments

image

Image object of S4 class 'antsImage' to be written.

filename

Name of the file to write the image to.

Value

0 -- Success 1 -- Failure

See Also

antsImageRead

Examples

Run this code
# NOT RUN {
# write an image 'img' of class 'antsImage' to a file named 'imagefile.nii'
antsImageWrite( img , "imagefile.nii" )
# }

Run the code above in your browser using DataLab