Description Usage Arguments Examples
Convert types to antsImage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | as.antsImage(object, pixeltype = "float",
spacing = as.numeric(seq.int(from = 1, by = 0, length.out =
length(dim(object)))), origin = as.numeric(seq.int(from = 0, by = 0,
length.out = length(dim(object)))),
direction = diag(length(dim(object))), components = FALSE,
reference = NA, ...)
## S4 method for signature 'matrix'
as.antsImage(object, pixeltype = "float",
spacing = as.numeric(seq.int(from = 1, by = 0, length.out =
length(dim(object)))), origin = as.numeric(seq.int(from = 0, by = 0,
length.out = length(dim(object)))),
direction = diag(length(dim(object))), components = FALSE,
reference = NA)
## S4 method for signature 'array'
as.antsImage(object, pixeltype = "float",
spacing = as.numeric(seq.int(from = 1, by = 0, length.out =
length(dim(object)))), origin = as.numeric(seq.int(from = 0, by = 0,
length.out = length(dim(object)))),
direction = diag(length(dim(object))), components = FALSE,
reference = NA)
|
object |
An object |
pixeltype |
a character string e.g. "float" |
spacing |
numeric vector matching image dimensionality e.g. c(1.2,1.2) |
origin |
numeric vector matching image dimensionality e.g. c(0,0) |
direction |
numeric matrix matching image dimensionality eg diag(2) |
components |
number of components per voxel, e.g. 1 |
reference |
optional reference antsImage providing all header info |
... |
Extra named arguments passed to FUN |
1 2 3 | arr = array(rnorm(10^3), dim = rep(10, 3))
img = as.antsImage(arr)
i2 = as.antsImage(arr, reference = img)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.