makeImage | R Documentation |
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
Avants BB
outimg <- makeImage(c(2, 10), 1)
outimg <- makeImage(outimg, c(2, 10))
testthat::expect_error(makeImage(outimg, c(2, 10), components = 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.