# NOT RUN {
# 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 ) )
# }
Run the code above in your browser using DataLab