powered by
Write an image object of S4 class 'antsImage' to a file.
antsImageWrite( image , filename )
Image object of S4 class 'antsImage' to be written.
Name of the file to write the image to.
0 -- Success 1 -- Failure
antsImageRead
# 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