makeImage.Rd
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 = FALSE, pixeltype = "float")
imagesize | input image size or mask |
---|---|
voxval | input image value or vector, size of mask |
spacing | image spatial resolution |
origin | image spatial origin |
direction | direction matrix to convert from index to physical space |
components | whether there are components per pixel or not |
pixeltype | data type of image values |
antsImage is output
#> Warning: Number of voxels not the same as the positive values