R/cmtk-reformat.R
Defines a target volume for a CMTK reformatx operation
cmtk.targetvolume.list
is designed to cope with any
user-defined class for which an as.im3d method exists. Presently the only
example in the nat.* ecosystem is
nat.templatebrains::as.im3d.templatebrain
.
cmtk.targetvolume(target, ...) # S3 method for im3d cmtk.targetvolume(target, ...) # S3 method for list cmtk.targetvolume(target, ...) # S3 method for default cmtk.targetvolume(target, ...)
target | A character vector specifying an image file on disk, an
|
---|---|
... | additional arguments passed to methods |
a character vector specifying the full cmtk reformatx '--target' or '--target-grid' argument
if the character vector specifies an amiramesh file, it will be
converted to a bare im3d
object and then to an appropriate
'--target-grid' specification.
# NOT RUN { # see https://github.com/jefferislab/nat.flybrains library(nat.flybrains) cmtk.targetvolume(FCWB) # }