cmtk.targetvolume: Defines a target volume for a CMTK reformatx operation

Description Usage Arguments Details Value Examples

View source: R/cmtk-reformat.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
cmtk.targetvolume(target, ...)

## S3 method for class 'im3d'
cmtk.targetvolume(target, ...)

## S3 method for class 'list'
cmtk.targetvolume(target, ...)

## Default S3 method:
cmtk.targetvolume(target, ...)

Arguments

target

A character vector specifying an image file on disk, an im3d object (or an object that can be coerced to im3d) or a 6-or 9-vector defining a grid in the form Nx,Ny,Nz,dX,dY,dZ,[Ox,Oy,Oz].

...

additional arguments passed to methods

Details

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.

Value

a character vector specifying the full cmtk reformatx '–target' or '–target-grid' argument

Examples

1
2
3
4
5
6
## Not run: 
# see https://github.com/jefferislab/nat.flybrains
library(nat.flybrains)
cmtk.targetvolume(FCWB)

## End(Not run)

jefferis/nat documentation built on Aug. 26, 2018, 12:13 p.m.