powered by
Make an image with given size and voxel value or given a mask and vector.
makeImage(imagesize, voxval = 0, spacing = c(NA), origin = c(NA), direction = c(NA), components = 1, pixeltype = "float")
input image size or mask
input image value or vector, size of mask
image spatial resolution
image spatial origin
direction matrix to convert from index to physical space
components per pixel
data type of image values
antsImage is output
# NOT RUN { outimg<-makeImage( c(2,10) , 1) outimg<-makeImage( outimg , c(2,10) ) # }
Run the code above in your browser using DataLab