as.antsImage.Rd
Convert types to antsImage
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 = NULL,
...
)
# S4 method for class '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 = NULL
)
# S4 method for class '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 = NULL
)
An object
a character string e.g. "float"
numeric vector matching image dimensionality e.g. c(1.2,1.2)
numeric vector matching image dimensionality e.g. c(0,0)
numeric matrix matching image dimensionality eg diag(2)
number of components per voxel, e.g. 1
optional reference antsImage providing all header info
Extra named arguments passed to FUN